Skip to content

Commit a9e67c8

Browse files
jidannigitster
authored andcommitted
Documentation/diff-options.txt: unify options
Instead of listing short option (e.g. "-U<n>") as a shorthand for its longer counterpart (e.g. "--unified=<n>"), list the synonyms together. It saves one indirection to find what the reader wants. Signed-off-by: jidanni <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fb3bb3d commit a9e67c8

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

Documentation/diff-options.txt

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,12 @@ endif::git-format-patch[]
1919

2020
ifndef::git-format-patch[]
2121
-p::
22+
-u::
2223
Generate patch (see section on generating patches).
2324
{git-diff? This is the default.}
2425
endif::git-format-patch[]
2526

26-
-u::
27-
Synonym for "-p".
28-
2927
-U<n>::
30-
Shorthand for "--unified=<n>".
31-
3228
--unified=<n>::
3329
Generate diffs with <n> lines of context instead of
3430
the usual three. Implies "-p".
@@ -190,31 +186,25 @@ endif::git-format-patch[]
190186
can name which subdirectory to make the output relative
191187
to by giving a <path> as an argument.
192188

189+
-a::
193190
--text::
194191
Treat all files as text.
195192

196-
-a::
197-
Shorthand for "--text".
198-
199193
--ignore-space-at-eol::
200194
Ignore changes in whitespace at EOL.
201195

196+
-b::
202197
--ignore-space-change::
203198
Ignore changes in amount of whitespace. This ignores whitespace
204199
at line end, and considers all other sequences of one or
205200
more whitespace characters to be equivalent.
206201

207-
-b::
208-
Shorthand for "--ignore-space-change".
209-
202+
-w::
210203
--ignore-all-space::
211204
Ignore whitespace when comparing lines. This ignores
212205
differences even if one line has whitespace where the other
213206
line has none.
214207

215-
-w::
216-
Shorthand for "--ignore-all-space".
217-
218208
--exit-code::
219209
Make the program exit with codes similar to diff(1).
220210
That is, it exits with 1 if there were differences and

0 commit comments

Comments
 (0)