From ff8489cb0ad4274315fecffc1fb187b7951a51b5 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 23 Sep 2005 11:06:04 +0100 Subject: [PATCH] [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 --- Documentation/git-diff-tree.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/git-diff-tree.txt b/Documentation/git-diff-tree.txt index 9ec4b29f..816c592e 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] [] [...] +'git-diff-tree' [--stdin] [-m] [-s] [-v] [--pretty] [-t] [] [] [...] DESCRIPTION ----------- Compares the content and mode of the blobs found via two tree objects. +If there is only one 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 -- 2.11.0