Skip to content

Commit e78e0f7

Browse files
asheidukgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Martin Ågren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9dba84d commit e78e0f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-diff.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
'git diff' [options] --cached [<commit>] [--] [<path>...]
1414
'git diff' [options] <commit> <commit> [--] [<path>...]
1515
'git diff' [options] <blob> <blob>
16-
'git diff' [options] [--no-index] [--] <path> <path>
16+
'git diff' [options] --no-index [--] <path> <path>
1717

1818
DESCRIPTION
1919
-----------
@@ -29,7 +29,7 @@ two blob objects, or changes between two files on disk.
2929
further add to the index but you still haven't. You can
3030
stage these changes by using linkgit:git-add[1].
3131

32-
'git diff' --no-index [--options] [--] [<path>...]::
32+
'git diff' [--options] --no-index [--] <path> <path>::
3333

3434
This form is to compare the given two paths on the
3535
filesystem. You can omit the `--no-index` option when

0 commit comments

Comments
 (0)