I've read the latter compares the branches starting from their ancestor. What exactly does that mean?
Asked
Active
Viewed 1,687 times
1 Answers
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
-
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