Skip to content

Commit ff8489c

Browse files
Robert WatsonJunio C Hamano
authored andcommitted
[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>
1 parent e20b134 commit ff8489c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-diff-tree.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@ git-diff-tree - Compares the content and mode of blobs found via two tree object
99

1010
SYNOPSIS
1111
--------
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>...]
1313

1414
DESCRIPTION
1515
-----------
1616
Compares the content and mode of the blobs found via two tree objects.
1717

18+
If there is only one <tree-ish> given, the commit is compared with its parents
19+
(see --stdin below).
20+
1821
Note that "git-diff-tree" can use the tree encapsulated in a commit object.
1922

2023
OPTIONS

0 commit comments

Comments
 (0)