Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions book/05-distributed-git/sections/maintaining.asc
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,12 @@ or, more concisely:
$ git diff $(git merge-base contrib master)
----

However, neither of those is particularly convenient, so Git provides another shorthand for doing the same thing: the double-dot syntax.
In the context of the `git diff` command, you can put two periods after another branch to do a `diff` between the last commit of the branch you're on and its common ancestor with another branch:
However, neither of those is particularly convenient, so Git provides another shorthand for doing the same thing: the triple-dot syntax.
In the context of the `git diff` command, you can put three periods after another branch to do a `diff` between the last commit of the branch you're on and its common ancestor with another branch:

[source,console]
----
$ git diff master..contrib
$ git diff master...contrib
----

This command shows you only the work your current topic branch has introduced since its common ancestor with master.
Expand Down