<divclass="paragraph"><p>Shows a diff between your current branch and it’s upstream. This is <em>roughly</em> the
same as:</p></div>
<divclass="paragraph"><p>Shows a diff between a branch and its upstream. If the branch is omitted, the tool shows the diff for the current branch. This is <em>roughly</em> the same as:</p></div>
@ -32,18 +32,18 @@ git-upstream-diff \- Print a diff of the current branch, compared to its upstrea
.SH"SYNOPSIS"
.sp
.nf
\fIgit upstream\-diff\fR [\-\-wordwise] [<extra args for git\-diff>*]
\fIgit upstream\-diff\fR [\-\-wordwise] [branch] [<extra args for git\-diff>*]
.fi
.sp
.SH"DESCRIPTION"
.sp
Shows a diff between your current branch and it\(cqs upstream\&. This is \fIroughly\fR the same as:
Shows a diff between a branch and its upstream\&. If the branch is omitted, the tool shows the diff for the current branch\&. This is \fIroughly\fR the same as:
uses the patience\-diff algorithm, which tends to produce nicer diffs in many cases\&.
.br
.sp
The difference is that HEAD@{upstream} is actually the tagged merge base of your branch (See \fBgit-rebase-update\fR(1))\&. This means that if your upstream branch was rebased, but you haven\(cqt yet rebased the current branch on top of it, you\(cqll still see an accurate diff compared to just diffing against @{upstream}\&.
The difference is that branch@{upstream} is actually the tagged merge base of your branch (See \fBgit-rebase-update\fR(1))\&. This means that if your upstream branch was rebased, but you haven\(cqt yet rebased the current branch on top of it, you\(cqll still see an accurate diff compared to just diffing against @{upstream}\&.
.sp
The \-\-wordwise option also allows git\-diff to do word\-by\-word comparison in a semi\-intelligent way\&. However, sometimes it can produce surprising results, so it is disabled by default\&.
.SH"OPTIONS"
@ -65,6 +65,17 @@ The \-\-wordwise option also allows git\-diff to do word\-by\-word comparison in
\-\-wordwise
.RS4
Print a colorized word\-wise diff instead of a line\-wise diff\&.
.sp
.ifn\{\
.RS4
.\}
.nf
Show a diff between the specified branch and its upstream, instead of using
'git upstream-diff' [--wordwise] [<extra args for git-diff>*]
'git upstream-diff' [--wordwise] [branch] [<extra args for git-diff>*]
DESCRIPTION
-----------
Shows a diff between your current branch and it's upstream. This is 'roughly' the
same as:
Shows a diff between a branch and its upstream. If the branch is omitted, the tool shows the diff for the current branch. This is 'roughly' the same as: