Re: log/show: relative pathnames do not work in rev:path
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 18, 2007, 23:05 UTC
- Message-ID
- <200712190005.27154.jnareb@gmail.com>
- In-Reply-To
- <20071218222032.GH2875@steel.home>
Dnia wtorek 18. grudnia 2007 23:20, Alex Riesen napisał:
> Jakub Narebski, Tue, Dec 18, 2007 22:24:26 +0100:
Show 10 quoted lines
>> Not "relative to project root". Relative to tree-ish used on right hand >> side in <tree-ish>:<path> extended SHA-1 syntax. It is usually project >> root, because when you specify <commit> or <tag> as <tree-ish> it refers >> to top/root directory of a project. > > I know. My problem: it is also awkward. git-show :test-l<Tab>ib.sh just > does not do what I expect. Nor does git cat-file HEAD:test-l<Tab>ib.sh. > And git cat-file HEAD:t/test-l<Tab> does not work at all. And this is > very simple example. Normally the pathnames are about 100 characters > long.
Doesn't bash completion (or zsh compltion) for git implement this? Let me check... it does
$ . contrib/completion/git-completion.bash $ git cat-file -p HEAD:t/test-<TAB> $ git cat-file -p HEAD:t/test-lib.sh # autocompleted
It does work correctly also from within t/ directory.
-- Jakub Narebski Poland