Skip to content

Commit

Permalink
diff documentation: mostly talk about <commit>
Browse files Browse the repository at this point in the history
This corrects minor remaining bits that still talked about <tree-ish>;
the Porcelain users (as opposed to plumbers) are mostly interested in
commits so use <commit> consistently and keep a sentence that mentions
that <tree-ish> can be used in place of them.
  • Loading branch information
Junio C Hamano committed Dec 20, 2006
1 parent 63c4b4c commit ce05454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-diff.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ git-diff - Show changes between commits, commit and working tree, etc

SYNOPSIS
--------
'git-diff' [ --diff-options ] <tree-ish>{0,2} [--] [<path>...]
'git-diff' [ --diff-options ] <commit>{0,2} [--] [<path>...]

DESCRIPTION
-----------
Expand All @@ -26,7 +26,7 @@ tree and the index file, or the index file and the working tree.
'git-diff' [--options] --cached [<commit>] [--] [<path>...]::

This form is to view the changes you staged for the next
commit relative to the named <tree-ish>. Typically you
commit relative to the named <commit>. Typically you
would want comparison with the latest commit, so if you
do not give <commit>, it defaults to HEAD.

Expand Down

0 comments on commit ce05454

Please sign in to comment.