2 Generate patch (see section on generating patches)
8 Generate the raw format.
11 Synonym for "-p --raw".
13 --stat[=width[,name-width]]::
14 Generate a diffstat. You can override the default
15 output width for 80-column terminal by "--stat=width".
16 The width of the filename part can be controlled by
17 giving another width to it separated by a comma.
20 Similar to \--stat, but shows number of added and
21 deleted lines in decimal notation and pathname without
22 abbreviation, to make it more machine friendly.
25 Output only the last line of the --stat format containing total
26 number of modified files, as well as number of added and deleted
30 Output a condensed summary of extended header information
31 such as creations, renames and mode changes.
34 Synonym for "-p --stat".
37 \0 line termination on output
40 Show only names of changed files.
43 Show only names and status of changed files.
49 Turn off colored diff, even when the configuration file
50 gives the default to color output.
53 Show colored word diff, i.e. color words which have changed.
56 Turn off rename detection, even when the configuration
57 file gives the default to do so.
60 Instead of the first handful characters, show full
61 object name of pre- and post-image blob on the "index"
62 line when generating a patch format output.
65 In addition to --full-index, output "binary diff" that
66 can be applied with "git apply".
69 Instead of showing the full 40-byte hexadecimal object
70 name in diff-raw format output and diff-tree header
71 lines, show only handful hexdigits prefix. This is
72 independent of --full-index option above, which controls
73 the diff-patch output format. Non default number of
74 digits can be specified with --abbrev=<n>.
77 Break complete rewrite changes into pairs of delete and create.
83 Detect copies as well as renames.
85 --diff-filter=[ACDMRTUXB*]::
86 Select only files that are Added (`A`), Copied (`C`),
87 Deleted (`D`), Modified (`M`), Renamed (`R`), have their
88 type (mode) changed (`T`), are Unmerged (`U`), are
89 Unknown (`X`), or have had their pairing Broken (`B`).
90 Any combination of the filter characters may be used.
91 When `*` (All-or-none) is added to the combination, all
92 paths are selected if there is any file that matches
93 other criteria in the comparison; if there is no file
94 that matches other criteria, nothing is selected.
96 --find-copies-harder::
97 For performance reasons, by default, -C option finds copies only
98 if the original file of the copy was modified in the same
99 changeset. This flag makes the command
100 inspect unmodified files as candidates for the source of
101 copy. This is a very expensive operation for large
102 projects, so use it with caution.
105 -M and -C options require O(n^2) processing time where n
106 is the number of potential rename/copy targets. This
107 option prevents rename/copy detection from running if
108 the number of rename/copy targets exceeds the specified
112 Look for differences that contain the change in <string>.
115 When -S finds a change, show all the changes in that
116 changeset, not just the files that contain the change
120 Make the <string> not a plain string but an extended POSIX
124 Output the patch in the order specified in the
125 <orderfile>, which has one shell glob pattern per line.
128 Swap two inputs; that is, show differences from index or
129 on-disk file to tree contents.
132 Treat all files as text.
135 Shorthand for "--text".
137 --ignore-space-change::
138 Ignore changes in amount of white space. This ignores white
139 space at line end, and consider all other sequences of one or
140 more white space characters to be equivalent.
143 Shorthand for "--ignore-space-change".
146 Ignore white space when comparing lines. This ignores
147 difference even if one line has white space where the other
151 Shorthand for "--ignore-all-space".
153 For more detailed explanation on these common options, see also
154 link:diffcore.html[diffcore documentation].