From: Linus Torvalds Date: Tue, 03 Jul 2007 22:17:51 GMT Subject: Re: [BUG] gitk fails with argument that is both existing directory and branch name Message-ID: In-Reply-To: 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