From: Jakub Narebski Date: Tue, 18 Dec 2007 23:05:26 GMT Subject: Re: log/show: relative pathnames do not work in rev:path 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: >> Not "relative to project root". Relative to tree-ish used on right hand >> side in : extended SHA-1 syntax. It is usually project >> root, because when you specify or as it refers >> to top/root directory of a project. > > I know. My problem: it is also awkward. git-show :test-lib.sh just > does not do what I expect. Nor does git cat-file HEAD:test-lib.sh. > And git cat-file HEAD:t/test-l 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- $ git cat-file -p HEAD:t/test-lib.sh # autocompleted It does work correctly also from within t/ directory. -- Jakub Narebski Poland