aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/diff-options.txt
diff options
context:
space:
mode:
authorSergey Organov <sorganov@gmail.com>2020-10-31 22:37:34 +0300
committerJunio C Hamano <gitster@pobox.com>2020-10-31 13:14:26 -0700
commit714d491af0307782989bc3256d4aafa11d647729 (patch)
tree1048f7c4abfd6a74ef4a8df18a15f0842bf97ff9 /Documentation/diff-options.txt
parent898f80736c75878acc02dc55672317fcc0e0a5a6 (diff)
downloadgit-714d491af0307782989bc3256d4aafa11d647729.tar.gz
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 <sorganov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/diff-options.txt')
-rw-r--r--Documentation/diff-options.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/diff-options.txt b/Documentation/diff-options.txt
index 573fb9bb71..3203040334 100644
--- a/Documentation/diff-options.txt
+++ b/Documentation/diff-options.txt
@@ -36,9 +36,9 @@ endif::git-format-patch[]
-U<n>::
--unified=<n>::
Generate diffs with <n> lines of context instead of
- the usual three. Implies `--patch`.
+ the usual three.
ifndef::git-format-patch[]
- Implies `-p`.
+ Implies `--patch`.
endif::git-format-patch[]
--output=<file>::
@@ -441,7 +441,10 @@ endif::git-format-patch[]
--binary::
In addition to `--full-index`, output a binary diff that
- can be applied with `git-apply`. Implies `--patch`.
+ can be applied with `git-apply`.
+ifndef::git-format-patch[]
+ Implies `--patch`.
+endif::git-format-patch[]
--abbrev[=<n>]::
Instead of showing the full 40-byte hexadecimal object