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. For
23 binary files, outputs two `-` instead of saying
27 Output only the last line of the --stat format containing total
28 number of modified files, as well as number of added and deleted
32 Output a condensed summary of extended header information
33 such as creations, renames and mode changes.
36 Synonym for "-p --stat".
39 \0 line termination on output
42 Show only names of changed files.
45 Show only names and status of changed files.
51 Turn off colored diff, even when the configuration file
52 gives the default to color output.
55 Show colored word diff, i.e. color words which have changed.
58 Turn off rename detection, even when the configuration
59 file gives the default to do so.
62 Instead of the first handful characters, show full
63 object name of pre- and post-image blob on the "index"
64 line when generating a patch format output.
67 In addition to --full-index, output "binary diff" that
68 can be applied with "git apply".
71 Instead of showing the full 40-byte hexadecimal object
72 name in diff-raw format output and diff-tree header
73 lines, show only handful hexdigits prefix. This is
74 independent of --full-index option above, which controls
75 the diff-patch output format. Non default number of
76 digits can be specified with --abbrev=<n>.
79 Break complete rewrite changes into pairs of delete and create.
85 Detect copies as well as renames.
87 --diff-filter=[ACDMRTUXB*]::
88 Select only files that are Added (`A`), Copied (`C`),
89 Deleted (`D`), Modified (`M`), Renamed (`R`), have their
90 type (mode) changed (`T`), are Unmerged (`U`), are
91 Unknown (`X`), or have had their pairing Broken (`B`).
92 Any combination of the filter characters may be used.
93 When `*` (All-or-none) is added to the combination, all
94 paths are selected if there is any file that matches
95 other criteria in the comparison; if there is no file
96 that matches other criteria, nothing is selected.
98 --find-copies-harder::
99 For performance reasons, by default, -C option finds copies only
100 if the original file of the copy was modified in the same
101 changeset. This flag makes the command
102 inspect unmodified files as candidates for the source of
103 copy. This is a very expensive operation for large
104 projects, so use it with caution.
107 -M and -C options require O(n^2) processing time where n
108 is the number of potential rename/copy targets. This
109 option prevents rename/copy detection from running if
110 the number of rename/copy targets exceeds the specified
114 Look for differences that contain the change in <string>.
117 When -S finds a change, show all the changes in that
118 changeset, not just the files that contain the change
122 Make the <string> not a plain string but an extended POSIX
126 Output the patch in the order specified in the
127 <orderfile>, which has one shell glob pattern per line.
130 Swap two inputs; that is, show differences from index or
131 on-disk file to tree contents.
134 Treat all files as text.
137 Shorthand for "--text".
139 --ignore-space-change::
140 Ignore changes in amount of white space. This ignores white
141 space at line end, and consider all other sequences of one or
142 more white space characters to be equivalent.
145 Shorthand for "--ignore-space-change".
148 Ignore white space when comparing lines. This ignores
149 difference even if one line has white space where the other
153 Shorthand for "--ignore-all-space".
155 For more detailed explanation on these common options, see also
156 link:diffcore.html[diffcore documentation].