Clarify documentation of "git checkout <tree-ish> paths" syntax
authorNanako Shiraishi <nanako3@lavabit.com>
Thu, 18 Dec 2008 03:34:56 +0000 (12:34 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Dec 2008 06:00:54 +0000 (22:00 -0800)
The SYNOPSIS section of the manual writes:

git checkout [options] [<tree-ish>] [--] <paths>...

but the DESCRIPTION says that this form checks the paths out "from the
index, or from a named commit." A later sentence refers to the same
argument as "<tree-ish> argument", but it is not clear that these two
sentences are talking about the same command line argument for first-time
readers.

Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
index 168333a588e0828d2d14687774fd41cc57f43721..79824f4819863577fbc1a313e82c739d59ea3a0e 100644 (file)
@@ -27,7 +27,7 @@ the first namespace level.
 
 When <paths> are given, this command does *not* switch
 branches.  It updates the named paths in the working tree from
-the index file, or from a named commit.  In
+the index file, or from a named <tree-ish> (most often a commit).  In
 this case, the `-b` options is meaningless and giving
 either of them results in an error.  <tree-ish> argument can be
 used to specify a specific tree-ish (i.e. commit, tag or tree)