-1

I'd like to get a summary of changes between two commits, using the commit messages. I found this thread, which almost does what I'm looking for:

List commits between 2 commit hashes in git

but the --ancestry-path tag doesn't show the commits that contribute to a merge commit in that chain. I'd like something similar, but follows the merge commits back to the common ancestor.

dmagree
  • 265
  • 1
  • 2
  • 10

1 Answers1

1

It looks like you simply want to view <commitA>..<commitB> range, without using --ancestry-path :

git log <commitA>..<commitB>
git log --oneline --graph <commitA>..<commitB>
LeGEC
  • 46,477
  • 5
  • 57
  • 104