doc: align 'diff --no-index' in text and synopsis
Make the two '<path>' parameters in DESCRIPTION mandatory and move the `--options` part to the same place where the other variants show them. And finally make `--no-index` in SYNOPSIS as mandatory as in DESCRIPTION. Signed-off-by: Andreas Heiduk <asheiduk@gmail.com> Reviewed-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Andreas Heiduk committed
May 3, 2018 at 20:48 UTC
e78e0f728eb043dc99de10fb3b4d58575f2df0c9
1 file changed
+2
-2
Documentation/git-diff.txt
+2
-2
@@ -13,7 +13,7 @@ SYNOPSIS
13
'git diff' [options] --cached [<commit>] [--] [<path>...]
14
'git diff' [options] <commit> <commit> [--] [<path>...]
15
'git diff' [options] <blob> <blob>
16
-'git diff' [options] [--no-index] [--] <path> <path>
16
+'git diff' [options] --no-index [--] <path> <path>
17
18
DESCRIPTION
19
-----------
@@ -29,7 +29,7 @@ two blob objects, or changes between two files on disk.
29
further add to the index but you still haven't. You can
30
stage these changes by using linkgit:git-add[1].
31
32
-'git diff' --no-index [--options] [--] [<path>...]::
32
+'git diff' [--options] --no-index [--] <path> <path>::
33
34
This form is to compare the given two paths on the
35
filesystem. You can omit the `--no-index` option when