[PATCH] document command to show diff of a commit
Document the best way to show the change introduced by a commit, based on the suggestion by Linus on the list. Signed-off-by: Junio C Hamano <junkio@cox.net>
Robert Watson committed
Sep 23, 2005 at 11:06 UTC
ff8489cb0ad4274315fecffc1fb187b7951a51b5
1 file changed
+4
-1
Documentation/git-diff-tree.txt
+4
-1
@@ -9,12 +9,15 @@ git-diff-tree - Compares the content and mode of blobs found via two tree object
9
10
SYNOPSIS
11
--------
12
-'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [<common diff options>] <tree-ish> <tree-ish> [<path>...]
12
+'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
13
14
DESCRIPTION
15
-----------
16
Compares the content and mode of the blobs found via two tree objects.
17
18
+If there is only one <tree-ish> given, the commit is compared with its parents
19
+(see --stdin below).
20
+
21
Note that "git-diff-tree" can use the tree encapsulated in a commit object.
22
23
OPTIONS