@@ -14,7 +14,8 @@ endif::git-format-patch[]
1414
1515ifdef::git-format-patch[]
1616-p::
17- Generate patches without diffstat.
17+ --no-stat::
18+ Generate plain patches without any diffstats.
1819endif::git-format-patch[]
1920
2021ifndef::git-format-patch[]
@@ -27,58 +28,67 @@ endif::git-format-patch[]
2728-U<n>::
2829--unified=<n>::
2930 Generate diffs with <n> lines of context instead of
30- the usual three. Implies "-p".
31+ the usual three.
32+ ifndef::git-format-patch[]
33+ Implies `-p`.
34+ endif::git-format-patch[]
3135
36+ ifndef::git-format-patch[]
3237--raw::
3338 Generate the raw format.
3439 {git-diff-core? This is the default.}
40+ endif::git-format-patch[]
3541
42+ ifndef::git-format-patch[]
3643--patch-with-raw::
37- Synonym for "-p --raw".
44+ Synonym for `-p --raw`.
45+ endif::git-format-patch[]
3846
3947--patience::
4048 Generate a diff using the "patience diff" algorithm.
4149
4250--stat[=width[,name-width]]::
4351 Generate a diffstat. You can override the default
44- output width for 80-column terminal by " --stat=width" .
52+ output width for 80-column terminal by ` --stat=width` .
4553 The width of the filename part can be controlled by
4654 giving another width to it separated by a comma.
4755
4856--numstat::
49- Similar to \--stat, but shows number of added and
57+ Similar to ` \--stat` , but shows number of added and
5058 deleted lines in decimal notation and pathname without
5159 abbreviation, to make it more machine friendly. For
5260 binary files, outputs two `-` instead of saying
5361 `0 0`.
5462
5563--shortstat::
56- Output only the last line of the --stat format containing total
64+ Output only the last line of the ` --stat` format containing total
5765 number of modified files, as well as number of added and deleted
5866 lines.
5967
6068--dirstat[=limit]::
6169 Output the distribution of relative amount of changes (number of lines added or
6270 removed) for each sub-directory. Directories with changes below
6371 a cut-off percent (3% by default) are not shown. The cut-off percent
64- can be set with " --dirstat=limit" . Changes in a child directory is not
65- counted for the parent directory, unless " --cumulative" is used.
72+ can be set with ` --dirstat=limit` . Changes in a child directory is not
73+ counted for the parent directory, unless ` --cumulative` is used.
6674
6775--dirstat-by-file[=limit]::
68- Same as --dirstat, but counts changed files instead of lines.
76+ Same as ` --dirstat` , but counts changed files instead of lines.
6977
7078--summary::
7179 Output a condensed summary of extended header information
7280 such as creations, renames and mode changes.
7381
82+ ifndef::git-format-patch[]
7483--patch-with-stat::
75- Synonym for " -p --stat" .
76- { git-format-patch? This is the default.}
84+ Synonym for ` -p --stat` .
85+ endif:: git-format-patch[]
7786
87+ ifndef::git-format-patch[]
7888-z::
79- NUL-line termination on output. This affects the --raw
89+ NUL-line termination on output. This affects the ` --raw`
8090 output field terminator. Also output from commands such
81- as " git-log" will be delimited with NUL between commits.
91+ as ` git-log` will be delimited with NUL between commits.
8292
8393--name-only::
8494 Show only names of changed files.
@@ -117,33 +127,36 @@ The regex can also be set via a diff driver or configuration option, see
117127linkgit:gitattributes[1] or linkgit:git-config[1]. Giving it explicitly
118128overrides any diff driver or configuration setting. Diff drivers
119129override configuration settings.
130+ endif::git-format-patch[]
120131
121132--no-renames::
122133 Turn off rename detection, even when the configuration
123134 file gives the default to do so.
124135
136+ ifndef::git-format-patch[]
125137--check::
126138 Warn if changes introduce trailing whitespace
127139 or an indent that uses a space before a tab. Exits with
128140 non-zero status if problems are found. Not compatible with
129141 --exit-code.
142+ endif::git-format-patch[]
130143
131144--full-index::
132145 Instead of the first handful of characters, show the full
133146 pre- and post-image blob object names on the "index"
134147 line when generating patch format output.
135148
136149--binary::
137- In addition to --full-index, output " binary diff" that
138- can be applied with " git apply" .
150+ In addition to ` --full-index` , output a binary diff that
151+ can be applied with ` git- apply` .
139152
140153--abbrev[=<n>]::
141154 Instead of showing the full 40-byte hexadecimal object
142155 name in diff-raw format output and diff-tree header
143156 lines, show only a partial prefix. This is
144- independent of --full-index option above, which controls
157+ independent of the ` --full-index` option above, which controls
145158 the diff-patch output format. Non default number of
146- digits can be specified with --abbrev=<n>.
159+ digits can be specified with ` --abbrev=<n>` .
147160
148161-B::
149162 Break complete rewrite changes into pairs of delete and create.
@@ -154,6 +167,7 @@ override configuration settings.
154167-C::
155168 Detect copies as well as renames. See also `--find-copies-harder`.
156169
170+ ifndef::git-format-patch[]
157171--diff-filter=[ACDMRTUXB*]::
158172 Select only files that are Added (`A`), Copied (`C`),
159173 Deleted (`D`), Modified (`M`), Renamed (`R`), have their
@@ -165,6 +179,7 @@ override configuration settings.
165179 paths are selected if there is any file that matches
166180 other criteria in the comparison; if there is no file
167181 that matches other criteria, nothing is selected.
182+ endif::git-format-patch[]
168183
169184--find-copies-harder::
170185 For performance reasons, by default, `-C` option finds copies only
@@ -176,31 +191,34 @@ override configuration settings.
176191 `-C` option has the same effect.
177192
178193-l<num>::
179- -M and -C options require O(n^2) processing time where n
194+ The `-M` and `-C` options require O(n^2) processing time where n
180195 is the number of potential rename/copy targets. This
181196 option prevents rename/copy detection from running if
182197 the number of rename/copy targets exceeds the specified
183198 number.
184199
200+ ifndef::git-format-patch[]
185201-S<string>::
186202 Look for differences that introduce or remove an instance of
187203 <string>. Note that this is different than the string simply
188204 appearing in diff output; see the 'pickaxe' entry in
189205 linkgit:gitdiffcore[7] for more details.
190206
191207--pickaxe-all::
192- When -S finds a change, show all the changes in that
208+ When `-S` finds a change, show all the changes in that
193209 changeset, not just the files that contain the change
194210 in <string>.
195211
196212--pickaxe-regex::
197213 Make the <string> not a plain string but an extended POSIX
198214 regex to match.
215+ endif::git-format-patch[]
199216
200217-O<orderfile>::
201218 Output the patch in the order specified in the
202219 <orderfile>, which has one shell glob pattern per line.
203220
221+ ifndef::git-format-patch[]
204222-R::
205223 Swap two inputs; that is, show differences from index or
206224 on-disk file to tree contents.
@@ -212,6 +230,7 @@ override configuration settings.
212230 not in a subdirectory (e.g. in a bare repository), you
213231 can name which subdirectory to make the output relative
214232 to by giving a <path> as an argument.
233+ endif::git-format-patch[]
215234
216235-a::
217236--text::
@@ -236,13 +255,15 @@ override configuration settings.
236255 Show the context between diff hunks, up to the specified number
237256 of lines, thereby fusing hunks that are close to each other.
238257
258+ ifndef::git-format-patch[]
239259--exit-code::
240260 Make the program exit with codes similar to diff(1).
241261 That is, it exits with 1 if there were differences and
242262 0 means no differences.
243263
244264--quiet::
245- Disable all output of the program. Implies --exit-code.
265+ Disable all output of the program. Implies `--exit-code`.
266+ endif::git-format-patch[]
246267
247268--ext-diff::
248269 Allow an external diff helper to be executed. If you set an
0 commit comments