Thread (2 messages) 2 messages, 2 authors, 2016-06-15

Re: [PATCH] git-rev-parse.txt: Document ":path" specifier

flat view

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:49:00

Possibly related (same subject, not in this thread)

Michael J Gruber [off-list ref] writes:
The empty treeish in ":path" means "index", not "HEAD" like in probably
every other place.
I would suggest dropping the ', not "HEAD"... place.' part from the above.
It is more confusing than useful to the readers.  

E.g. "git diff <treeish>" compares with the named tree-ish, but "git diff"
compares with the index, even though the latter obviously lacks <treeish>
and does not default to HEAD.

The rule is more like "the index is used by default for missing value, but
with an operation that does not make sense with the index, it defaults to
the HEAD", I think.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help