Re: [BUG] gitk fails with argument that is both existing directory and branch name
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Jul 3, 2007, 22:17 UTC
- Message-ID
- <alpine.LFD.0.98.0707031514160.9434@woody.linux-foundation.org>
- In-Reply-To
- <Pine.LNX.4.64.0707032248570.4071@racer.site>
On Tue, 3 Jul 2007, Johannes Schindelin wrote:
> > Umm. Why don't you just use gitk linus/master..fixes? This is how we teach > people to use rev-list anyway.
No, Uwe is right. There's a bug somewhere.
This _should_ work:
# create a fake 'gitk' branch if you don't have one already git branch gitk master
# This should look at the 'gitk' branch gitk gitk --
but it doesn't. It just hangs for me.
It seems to be some fairly recent gitk bug, too, because I'm pretty sure it _used_ to work.
I checked, and "git rev-list" works fine:
git rev-list --default HEAD gitk
fails correctly with
fatal: ambiguous argument 'gitk': both revision and filename Use '--' to separate filenames from revisions
and the way to get it to work as a branch-name is to do
git rev-list --default HEAD gitk --
which works fine.
Linus