Skip to content

Commit 714d491

Browse files
sorganovgitster
authored andcommitted
doc/diff-options: fix out of place mentions of '--patch/-p'
First, references to --patch and -p appeared in the description of git-format-patch, where the options themselves are not included. Next, the description of --unified option elsewhere had duplicate implied statements: "Implies --patch. Implies -p." Signed-off-by: Sergey Organov <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898f807 commit 714d491

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Documentation/diff-options.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ endif::git-format-patch[]
3636
-U<n>::
3737
--unified=<n>::
3838
Generate diffs with <n> lines of context instead of
39-
the usual three. Implies `--patch`.
39+
the usual three.
4040
ifndef::git-format-patch[]
41-
Implies `-p`.
41+
Implies `--patch`.
4242
endif::git-format-patch[]
4343

4444
--output=<file>::
@@ -441,7 +441,10 @@ endif::git-format-patch[]
441441

442442
--binary::
443443
In addition to `--full-index`, output a binary diff that
444-
can be applied with `git-apply`. Implies `--patch`.
444+
can be applied with `git-apply`.
445+
ifndef::git-format-patch[]
446+
Implies `--patch`.
447+
endif::git-format-patch[]
445448

446449
--abbrev[=<n>]::
447450
Instead of showing the full 40-byte hexadecimal object

0 commit comments

Comments
 (0)