.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GIT\-DIFF\-FILES" "1" "07/19/2007" "Git 1.5.3.rc0.11.ge2b1a" "Git Manual"
+.TH "GIT\-DIFF\-FILES" "1" "07/26/2007" "Git 1.5.3.rc3.7.gd58e" "Git Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
\-u
Synonym for "\-p".
.TP
+\-U<n>
+Shorthand for "\-\-unified=<n>".
+.TP
+\-\-unified=<n>
+Generate diffs with <n> lines of context instead of the usual three. Implies "\-p".
+.TP
\-\-raw
Generate the raw format.
.TP
An output line is formatted this way:
.sp
.nf
+.ft C
in\-place edit :100644 100644 bcd1234... 0123456... M file0
copy\-edit :100644 100644 abcd123... 1234567... C68 file1 file2
rename\-edit :100644 100644 abcd123... 1234567... R86 file1 file3
create :000000 100644 0000000... 1234567... A file4
delete :100644 000000 1234567... 0000000... D file5
unmerged :000000 000000 0000000... 0000000... U file6
+.ft
+
.fi
That is, from the left to the right:
.TP 3
Example:
.sp
.nf
+.ft C
:100644 100644 5be4a4...... 000000...... M file.c
+.ft
+
.fi
When \-z option is not used, TAB, LF, and backslash characters in pathnames are represented as \\t, \\n, and \\\\, respectively.
.SH "DIFF FORMAT FOR MERGES"
Example:
.sp
.nf
+.ft C
::100644 100644 100644 fabadb8... cc95eb0... 4866510... MM describe.c
+.ft
+
.fi
Note that \fIcombined diff\fR lists only files which were modified from all parents.
.SH "GENERATING PATCHES WITH \-P"
git\-diff\-tree and git\-diff\-files can take \fI\-c\fR or \fI\-\-cc\fR option to produce \fIcombined diff\fR, which looks like this:
.sp
.nf
+.ft C
diff \-\-combined describe.c
index fabadb8,cc95eb0..4866510
\-\-\- a/describe.c
if (!initialized) {
initialized = 1;
for_each_ref(get_name);
+.ft
+
.fi
.TP 3
1.
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GIT\-DIFF\-INDEX" "1" "07/19/2007" "Git 1.5.3.rc0.11.ge2b1a" "Git Manual"
+.TH "GIT\-DIFF\-INDEX" "1" "07/26/2007" "Git 1.5.3.rc3.7.gd58e" "Git Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
\-u
Synonym for "\-p".
.TP
+\-U<n>
+Shorthand for "\-\-unified=<n>".
+.TP
+\-\-unified=<n>
+Generate diffs with <n> lines of context instead of the usual three. Implies "\-p".
+.TP
\-\-raw
Generate the raw format.
.TP
An output line is formatted this way:
.sp
.nf
+.ft C
in\-place edit :100644 100644 bcd1234... 0123456... M file0
copy\-edit :100644 100644 abcd123... 1234567... C68 file1 file2
rename\-edit :100644 100644 abcd123... 1234567... R86 file1 file3
create :000000 100644 0000000... 1234567... A file4
delete :100644 000000 1234567... 0000000... D file5
unmerged :000000 000000 0000000... 0000000... U file6
+.ft
+
.fi
That is, from the left to the right:
.TP 3
Example:
.sp
.nf
+.ft C
:100644 100644 5be4a4...... 000000...... M file.c
+.ft
+
.fi
When \-z option is not used, TAB, LF, and backslash characters in pathnames are represented as \\t, \\n, and \\\\, respectively.
.SH "DIFF FORMAT FOR MERGES"
Example:
.sp
.nf
+.ft C
::100644 100644 100644 fabadb8... cc95eb0... 4866510... MM describe.c
+.ft
+
.fi
Note that \fIcombined diff\fR lists only files which were modified from all parents.
.SH "GENERATING PATCHES WITH \-P"
git\-diff\-tree and git\-diff\-files can take \fI\-c\fR or \fI\-\-cc\fR option to produce \fIcombined diff\fR, which looks like this:
.sp
.nf
+.ft C
diff \-\-combined describe.c
index fabadb8,cc95eb0..4866510
\-\-\- a/describe.c
if (!initialized) {
initialized = 1;
for_each_ref(get_name);
+.ft
+
.fi
.TP 3
1.
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GIT\-DIFF\-TREE" "1" "07/25/2007" "Git 1.5.3.rc3" "Git Manual"
+.TH "GIT\-DIFF\-TREE" "1" "07/26/2007" "Git 1.5.3.rc3.7.gd58e" "Git Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
\-u
Synonym for "\-p".
.TP
+\-U<n>
+Shorthand for "\-\-unified=<n>".
+.TP
+\-\-unified=<n>
+Generate diffs with <n> lines of context instead of the usual three. Implies "\-p".
+.TP
\-\-raw
Generate the raw format.
.TP
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GIT\-DIFF" "1" "07/19/2007" "Git 1.5.3.rc0.11.ge2b1a" "Git Manual"
+.TH "GIT\-DIFF" "1" "07/26/2007" "Git 1.5.3.rc3.7.gd58e" "Git Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
\-u
Synonym for "\-p".
.TP
+\-U<n>
+Shorthand for "\-\-unified=<n>".
+.TP
+\-\-unified=<n>
+Generate diffs with <n> lines of context instead of the usual three. Implies "\-p".
+.TP
\-\-raw
Generate the raw format.
.TP
Various ways to check your working tree
.sp
.nf
+.ft C
$ git diff \fB(1)\fR
$ git diff \-\-cached \fB(2)\fR
$ git diff HEAD \fB(3)\fR
+.ft
+
.fi
.sp
\fB1. \fRchanges in the working tree not yet staged for the next commit.
Comparing with arbitrary commits
.sp
.nf
+.ft C
$ git diff test \fB(1)\fR
$ git diff HEAD \-\- ./test \fB(2)\fR
$ git diff HEAD^ HEAD \fB(3)\fR
+.ft
+
.fi
.sp
\fB1. \fRinstead of using the tip of the current branch, compare with the tip of "test" branch.
Limiting the diff output
.sp
.nf
+.ft C
$ git diff \-\-diff\-filter=MRC \fB(1)\fR
$ git diff \-\-name\-status \-r \fB(2)\fR
$ git diff arch/i386 include/asm\-i386 \fB(3)\fR
+.ft
+
.fi
.sp
\fB1. \fRshow only modification, rename and copy, but not addition nor deletion.
Munging the diff output
.sp
.nf
+.ft C
$ git diff \-\-find\-copies\-harder \-B \-C \fB(1)\fR
$ git diff \-R \fB(2)\fR
+.ft
+
.fi
.sp
\fB1. \fRspend extra cycles to find renames, copies and complete rewrites (very expensive).
.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
.\" Instead of manually editing it, you probably should edit the DocBook XML
.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
-.TH "GIT\-FORMAT\-PATCH" "1" "07/19/2007" "Git 1.5.3.rc0.11.ge2b1a" "Git Manual"
+.TH "GIT\-FORMAT\-PATCH" "1" "07/26/2007" "Git 1.5.3.rc3.7.gd58e" "Git Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
\-u
Synonym for "\-p".
.TP
+\-U<n>
+Shorthand for "\-\-unified=<n>".
+.TP
+\-\-unified=<n>
+Generate diffs with <n> lines of context instead of the usual three. Implies "\-p".
+.TP
\-\-raw
Generate the raw format.
.TP
You can specify extra mail header lines to be added to each message in the repository configuration. You can also specify new defaults for the subject prefix and file suffix.
.sp
.nf
+.ft C
[format]
headers = "Organization: git\-foo\\n"
subjectprefix = CHANGE
suffix = .txt
+.ft
+
.fi
.SH "EXAMPLES"
.TP