Skip to content

Commit 5356a3c

Browse files
asheidukgitster
authored andcommitted
doc: normalize [--options] to [options] in git-diff
SYNOPSIS and other manuals use [options] but DESCRIPTION used [--options]. Signed-off-by: Andreas Heiduk <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 88184c1 commit 5356a3c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Documentation/git-diff.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Show changes between the working tree and the index or a tree, changes
2121
between the index and a tree, changes between two trees, changes between
2222
two blob objects, or changes between two files on disk.
2323

24-
'git diff' [--options] [--] [<path>...]::
24+
'git diff' [options] [--] [<path>...]::
2525

2626
This form is to view the changes you made relative to
2727
the index (staging area for the next commit). In other
2828
words, the differences are what you _could_ tell Git to
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' [--options] --no-index [--] <path> <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
@@ -38,7 +38,7 @@ two blob objects, or changes between two files on disk.
3838
or when running the command outside a working tree
3939
controlled by Git.
4040

41-
'git diff' [--options] --cached [<commit>] [--] [<path>...]::
41+
'git diff' [options] --cached [<commit>] [--] [<path>...]::
4242

4343
This form is to view the changes you staged for the next
4444
commit relative to the named <commit>. Typically you
@@ -48,26 +48,26 @@ two blob objects, or changes between two files on disk.
4848
<commit> is not given, it shows all staged changes.
4949
--staged is a synonym of --cached.
5050

51-
'git diff' [--options] <commit> [--] [<path>...]::
51+
'git diff' [options] <commit> [--] [<path>...]::
5252

5353
This form is to view the changes you have in your
5454
working tree relative to the named <commit>. You can
5555
use HEAD to compare it with the latest commit, or a
5656
branch name to compare with the tip of a different
5757
branch.
5858

59-
'git diff' [--options] <commit> <commit> [--] [<path>...]::
59+
'git diff' [options] <commit> <commit> [--] [<path>...]::
6060

6161
This is to view the changes between two arbitrary
6262
<commit>.
6363

64-
'git diff' [--options] <commit>..<commit> [--] [<path>...]::
64+
'git diff' [options] <commit>..<commit> [--] [<path>...]::
6565

6666
This is synonymous to the previous form. If <commit> on
6767
one side is omitted, it will have the same effect as
6868
using HEAD instead.
6969

70-
'git diff' [--options] <commit>\...<commit> [--] [<path>...]::
70+
'git diff' [options] <commit>\...<commit> [--] [<path>...]::
7171

7272
This form is to view the changes on the branch containing
7373
and up to the second <commit>, starting at a common ancestor

0 commit comments

Comments
 (0)