Skip to content

Commit

Permalink
git-rev-parse.txt: Document ":path" specifier
Browse files Browse the repository at this point in the history
The empty treeish in ":path" means "index". This is actually a special
case of the ":stage:path" syntax where it is documented, but mentioning
it also together with "treeish:path" is helpful, so do it.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Jun 27, 2010
1 parent a4c2454 commit 3f3abe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Documentation/git-rev-parse.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,9 @@ the `$GIT_DIR/refs` directory or from the `$GIT_DIR/packed-refs` file.

* A suffix ':' followed by a path; this names the blob or tree
at the given path in the tree-ish object named by the part
before the colon.
before the colon. ":path" (with an empty part before the colon)
is a special case of the syntax described next: content
recorded in the index at the given path.

* A colon, optionally followed by a stage number (0 to 3) and a
colon, followed by a path; this names a blob object in the
Expand Down

0 comments on commit 3f3abe3

Please sign in to comment.