Re: [PATCH v3] Support ent:relative_path
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- May 5, 2007, 01:11 UTC
- Message-ID
- <f1glk1$6qh$1@sea.gmane.org>
- In-Reply-To
- <463BD40C.6080909@gmail.com>
Dana How wrote:
Show 13 quoted lines
> Most commands accept relative paths, but this is > not true of arguments in ent:path format. This > patch makes all of the following git-show commands > work in the git source tree (not just the first): > > % cd xdiff > % git-show v1.5.2-rc0:xdiff/xemit.h > % git-show v1.5.2-rc0:./xemit.h > % git-show v1.5.2-rc0:../sha1_name.c > > It also adds ent:?string as a synonym for ent:/string . > This makes the following changes possible later: > ent:/path is an absolute path and ent:path is relative.
First, we now usually use 'tree-ish' or 'treeish', not 'ent'. Second, it is ':/<text>', not '<tree-ish>:/<text>'
git-rev-parse(1):
* A colon, followed by a slash, followed by a text: this names a commit whose commit message starts with the specified text. This name returns the youngest matching commit which is reachable from any ref. If the commit message starts with a '!', you have to repeat that; the special sequence ':/!', followed by something else than '!' is reserved for now.
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git