@@ -14,7 +14,8 @@ endif::git-format-patch[]
14
14
15
15
ifdef::git-format-patch[]
16
16
-p::
17
- Generate patches without diffstat.
17
+ --no-stat::
18
+ Generate plain patches without any diffstats.
18
19
endif::git-format-patch[]
19
20
20
21
ifndef::git-format-patch[]
@@ -27,58 +28,67 @@ endif::git-format-patch[]
27
28
-U<n>::
28
29
--unified=<n>::
29
30
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[]
31
35
36
+ ifndef::git-format-patch[]
32
37
--raw::
33
38
Generate the raw format.
34
39
{git-diff-core? This is the default.}
40
+ endif::git-format-patch[]
35
41
42
+ ifndef::git-format-patch[]
36
43
--patch-with-raw::
37
- Synonym for "-p --raw".
44
+ Synonym for `-p --raw`.
45
+ endif::git-format-patch[]
38
46
39
47
--patience::
40
48
Generate a diff using the "patience diff" algorithm.
41
49
42
50
--stat[=width[,name-width]]::
43
51
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` .
45
53
The width of the filename part can be controlled by
46
54
giving another width to it separated by a comma.
47
55
48
56
--numstat::
49
- Similar to \--stat, but shows number of added and
57
+ Similar to ` \--stat` , but shows number of added and
50
58
deleted lines in decimal notation and pathname without
51
59
abbreviation, to make it more machine friendly. For
52
60
binary files, outputs two `-` instead of saying
53
61
`0 0`.
54
62
55
63
--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
57
65
number of modified files, as well as number of added and deleted
58
66
lines.
59
67
60
68
--dirstat[=limit]::
61
69
Output the distribution of relative amount of changes (number of lines added or
62
70
removed) for each sub-directory. Directories with changes below
63
71
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.
66
74
67
75
--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.
69
77
70
78
--summary::
71
79
Output a condensed summary of extended header information
72
80
such as creations, renames and mode changes.
73
81
82
+ ifndef::git-format-patch[]
74
83
--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[]
77
86
87
+ ifndef::git-format-patch[]
78
88
-z::
79
- NUL-line termination on output. This affects the --raw
89
+ NUL-line termination on output. This affects the ` --raw`
80
90
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.
82
92
83
93
--name-only::
84
94
Show only names of changed files.
@@ -117,33 +127,36 @@ The regex can also be set via a diff driver or configuration option, see
117
127
linkgit:gitattributes[1] or linkgit:git-config[1]. Giving it explicitly
118
128
overrides any diff driver or configuration setting. Diff drivers
119
129
override configuration settings.
130
+ endif::git-format-patch[]
120
131
121
132
--no-renames::
122
133
Turn off rename detection, even when the configuration
123
134
file gives the default to do so.
124
135
136
+ ifndef::git-format-patch[]
125
137
--check::
126
138
Warn if changes introduce trailing whitespace
127
139
or an indent that uses a space before a tab. Exits with
128
140
non-zero status if problems are found. Not compatible with
129
141
--exit-code.
142
+ endif::git-format-patch[]
130
143
131
144
--full-index::
132
145
Instead of the first handful of characters, show the full
133
146
pre- and post-image blob object names on the "index"
134
147
line when generating patch format output.
135
148
136
149
--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` .
139
152
140
153
--abbrev[=<n>]::
141
154
Instead of showing the full 40-byte hexadecimal object
142
155
name in diff-raw format output and diff-tree header
143
156
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
145
158
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>` .
147
160
148
161
-B::
149
162
Break complete rewrite changes into pairs of delete and create.
@@ -154,6 +167,7 @@ override configuration settings.
154
167
-C::
155
168
Detect copies as well as renames. See also `--find-copies-harder`.
156
169
170
+ ifndef::git-format-patch[]
157
171
--diff-filter=[ACDMRTUXB*]::
158
172
Select only files that are Added (`A`), Copied (`C`),
159
173
Deleted (`D`), Modified (`M`), Renamed (`R`), have their
@@ -165,6 +179,7 @@ override configuration settings.
165
179
paths are selected if there is any file that matches
166
180
other criteria in the comparison; if there is no file
167
181
that matches other criteria, nothing is selected.
182
+ endif::git-format-patch[]
168
183
169
184
--find-copies-harder::
170
185
For performance reasons, by default, `-C` option finds copies only
@@ -176,31 +191,34 @@ override configuration settings.
176
191
`-C` option has the same effect.
177
192
178
193
-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
180
195
is the number of potential rename/copy targets. This
181
196
option prevents rename/copy detection from running if
182
197
the number of rename/copy targets exceeds the specified
183
198
number.
184
199
200
+ ifndef::git-format-patch[]
185
201
-S<string>::
186
202
Look for differences that introduce or remove an instance of
187
203
<string>. Note that this is different than the string simply
188
204
appearing in diff output; see the 'pickaxe' entry in
189
205
linkgit:gitdiffcore[7] for more details.
190
206
191
207
--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
193
209
changeset, not just the files that contain the change
194
210
in <string>.
195
211
196
212
--pickaxe-regex::
197
213
Make the <string> not a plain string but an extended POSIX
198
214
regex to match.
215
+ endif::git-format-patch[]
199
216
200
217
-O<orderfile>::
201
218
Output the patch in the order specified in the
202
219
<orderfile>, which has one shell glob pattern per line.
203
220
221
+ ifndef::git-format-patch[]
204
222
-R::
205
223
Swap two inputs; that is, show differences from index or
206
224
on-disk file to tree contents.
@@ -212,6 +230,7 @@ override configuration settings.
212
230
not in a subdirectory (e.g. in a bare repository), you
213
231
can name which subdirectory to make the output relative
214
232
to by giving a <path> as an argument.
233
+ endif::git-format-patch[]
215
234
216
235
-a::
217
236
--text::
@@ -236,13 +255,15 @@ override configuration settings.
236
255
Show the context between diff hunks, up to the specified number
237
256
of lines, thereby fusing hunks that are close to each other.
238
257
258
+ ifndef::git-format-patch[]
239
259
--exit-code::
240
260
Make the program exit with codes similar to diff(1).
241
261
That is, it exits with 1 if there were differences and
242
262
0 means no differences.
243
263
244
264
--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[]
246
267
247
268
--ext-diff::
248
269
Allow an external diff helper to be executed. If you set an
0 commit comments