..
.TH "GIT-DIFF" 1 "" "" ""
.SH NAME
-git-diff \- Show changes between commits, commit and working tree, etc.
+git-diff \- Show changes between commits, commit and working tree, etc
.SH "SYNOPSIS"
-git\-diff [ \-\-diff\-options ] <ent>{0,2} [<path>...]
+\fIgit\-diff\fR [ \-\-diff\-options ] <ent>{0,2} [<path>...]
.SH "DESCRIPTION"
.TP
\-\-diff\-options
- \-\-diff\-options are passed to the git\-diff\-files, git\-diff\-index, and git\-diff\-tree commands\&. See the documentation for these commands for description\&.
+ \fI\-\-diff\-options\fR are passed to the git\-diff\-files, git\-diff\-index, and git\-diff\-tree commands\&. See the documentation for these commands for description\&.
.TP
<path>...
.TP
Various ways to check your working tree
-.IP
+.nf
$ git diff
$ git diff \-\-cached
$ git diff HEAD
would be committing if you run "git commit" without "\-a" option\&.
changes in the working tree since your last commit; what you
would be committing if you run "git commit \-a"
+.fi
+
.TP
Comparing with arbitrary commits
-.IP
+.nf
$ git diff test
$ git diff HEAD \-\- \&./test
$ git diff HEAD^ HEAD
the tip of the current branch, but limit the comparison to the
file "test"\&.
compare the version before the last commit and the last commit\&.
+.fi
+
.TP
Limiting the diff output
-.IP
+.nf
$ git diff \-\-diff\-filter=MRC
$ git diff \-\-name\-status \-r
$ git diff arch/i386 include/asm\-i386
you would only see the directory name if there is a change in a
file in a subdirectory\&.
limit diff output to named subtrees\&.
+.fi
+
.TP
Munging the diff output
-.IP
+.nf
$ git diff \-\-find\-copies\-harder \-B \-C
$ git diff \-R
spend extra cycles to find renames, copies and complete
rewrites (very expensive)\&.
output diff in reverse\&.
+.fi
+
.SH "AUTHOR"