@@ -12,6 +12,7 @@ SYNOPSIS
12
12
'git diff' [options] [<commit>] [--] [<path>...]
13
13
'git diff' [options] --cached [<commit>] [--] [<path>...]
14
14
'git diff' [options] <commit> <commit> [--] [<path>...]
15
+ 'git diff' [options] <blob> <blob>
15
16
'git diff' [options] [--no-index] [--] <path> <path>
16
17
17
18
DESCRIPTION
@@ -55,6 +56,11 @@ directories. This behavior can be forced by --no-index.
55
56
This is to view the changes between two arbitrary
56
57
<commit>.
57
58
59
+ 'git diff' [options] <blob> <blob>::
60
+
61
+ This form is to view the differences between the raw
62
+ contents of two blob objects.
63
+
58
64
'git diff' [--options] <commit>..<commit> [--] [<path>...]::
59
65
60
66
This is synonymous to the previous form. If <commit> on
@@ -72,8 +78,7 @@ directories. This behavior can be forced by --no-index.
72
78
Just in case if you are doing something exotic, it should be
73
79
noted that all of the <commit> in the above description, except
74
80
in the last two forms that use ".." notations, can be any
75
- <tree>. The third form ('git diff <commit> <commit>') can also
76
- be used to compare two <blob> objects.
81
+ <tree>.
77
82
78
83
For a more complete list of ways to spell <commit>, see
79
84
"SPECIFYING REVISIONS" section in linkgit:gitrevisions[7].
0 commit comments