summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <robert.oo.watson@gmail.com>2005-09-23 10:06:04 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-23 21:28:40 (GMT)
commitff8489cb0ad4274315fecffc1fb187b7951a51b5 (patch)
treebdede2ffcbb0c883d1ff2c232a0273979aef1148
parente20b134d72dd02b51d81144fe082c55da31b27cd (diff)
downloadgit-ff8489cb0ad4274315fecffc1fb187b7951a51b5.zip
git-ff8489cb0ad4274315fecffc1fb187b7951a51b5.tar.gz
git-ff8489cb0ad4274315fecffc1fb187b7951a51b5.tar.bz2
[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>
-rw-r--r--Documentation/git-diff-tree.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/Documentation/git-diff-tree.txt b/Documentation/git-diff-tree.txt
index 9ec4b29..816c592 100644
--- a/Documentation/git-diff-tree.txt
+++ b/Documentation/git-diff-tree.txt
@@ -9,12 +9,15 @@ git-diff-tree - Compares the content and mode of blobs found via two tree object
SYNOPSIS
--------
-'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [<common diff options>] <tree-ish> <tree-ish> [<path>...]
+'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
DESCRIPTION
-----------
Compares the content and mode of the blobs found via two tree objects.
+If there is only one <tree-ish> given, the commit is compared with its parents
+(see --stdin below).
+
Note that "git-diff-tree" can use the tree encapsulated in a commit object.
OPTIONS