0

I've read the latter compares the branches starting from their ancestor. What exactly does that mean?

jub0bs
  • 60,866
  • 25
  • 183
  • 186
Alexander Suraphel
  • 10,103
  • 10
  • 55
  • 90

1 Answers1

6

Two dots

git log start-branch..end-branch

(equivalent to git log ^start-branch end-branch).

Lists all the commits reachable from end-branch that are not reachable from start-branch.

Three dots

git log start-branch...end-branch

Lists all commits that are reachable from either start-branch or end-branch but not reachable from both start-branch and end-branch.

References

jub0bs
  • 60,866
  • 25
  • 183
  • 186
flafoux
  • 2,080
  • 1
  • 12
  • 13
  • Careful: `git log start-branch..end-branch` is equivalent to `git log ^start-branch end-branch` (note the caret before `start-branch`), not to `git log start-branch end-branch`. – jub0bs Apr 17 '15 at 15:14
  • @jubobs thanks for mentioning that. Can you link to the docs? flafoux, can you update your answer? – Alexander Suraphel Apr 19 '15 at 10:44