@@ -13,23 +13,23 @@ SYNOPSIS
13
13
'git diff' [options] --cached [<commit>] [--] [<path>...]
14
14
'git diff' [options] <commit> <commit> [--] [<path>...]
15
15
'git diff' [options] <blob> <blob>
16
- 'git diff' [options] [ --no-index] [--] <path> <path>
16
+ 'git diff' [options] --no-index [--] <path> <path>
17
17
18
18
DESCRIPTION
19
19
-----------
20
20
Show changes between the working tree and the index or a tree, changes
21
21
between the index and a tree, changes between two trees, changes between
22
22
two blob objects, or changes between two files on disk.
23
23
24
- 'git diff' [-- options] [--] [<path>...]::
24
+ 'git diff' [options] [--] [<path>...]::
25
25
26
26
This form is to view the changes you made relative to
27
27
the index (staging area for the next commit). In other
28
28
words, the differences are what you _could_ tell Git to
29
29
further add to the index but you still haven't. You can
30
30
stage these changes by using linkgit:git-add[1].
31
31
32
- 'git diff' --no-index [--options] [--] [ <path>...] ::
32
+ 'git diff' [options] --no-index [--] <path> <path>::
33
33
34
34
This form is to compare the given two paths on the
35
35
filesystem. You can omit the `--no-index` option when
@@ -38,7 +38,7 @@ two blob objects, or changes between two files on disk.
38
38
or when running the command outside a working tree
39
39
controlled by Git.
40
40
41
- 'git diff' [-- options] --cached [<commit>] [--] [<path>...]::
41
+ 'git diff' [options] --cached [<commit>] [--] [<path>...]::
42
42
43
43
This form is to view the changes you staged for the next
44
44
commit relative to the named <commit>. Typically you
@@ -48,26 +48,26 @@ two blob objects, or changes between two files on disk.
48
48
<commit> is not given, it shows all staged changes.
49
49
--staged is a synonym of --cached.
50
50
51
- 'git diff' [-- options] <commit> [--] [<path>...]::
51
+ 'git diff' [options] <commit> [--] [<path>...]::
52
52
53
53
This form is to view the changes you have in your
54
54
working tree relative to the named <commit>. You can
55
55
use HEAD to compare it with the latest commit, or a
56
56
branch name to compare with the tip of a different
57
57
branch.
58
58
59
- 'git diff' [-- options] <commit> <commit> [--] [<path>...]::
59
+ 'git diff' [options] <commit> <commit> [--] [<path>...]::
60
60
61
61
This is to view the changes between two arbitrary
62
62
<commit>.
63
63
64
- 'git diff' [-- options] <commit>..<commit> [--] [<path>...]::
64
+ 'git diff' [options] <commit>..<commit> [--] [<path>...]::
65
65
66
66
This is synonymous to the previous form. If <commit> on
67
67
one side is omitted, it will have the same effect as
68
68
using HEAD instead.
69
69
70
- 'git diff' [-- options] <commit>\...<commit> [--] [<path>...]::
70
+ 'git diff' [options] <commit>\...<commit> [--] [<path>...]::
71
71
72
72
This form is to view the changes on the branch containing
73
73
and up to the second <commit>, starting at a common ancestor
0 commit comments