git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 9 in “[BUG] gitk fails with argument that is both existing directory and branch name”
  1. Uwe Kleine-KönigJul 3, 2007
  2. Johannes SchindelinJul 3, 2007
  3. Linus TorvaldsJul 3, 2007
  4. Johannes SchindelinJul 3, 2007
  5. gitk: fix for "gitk <ambiguous-name> --"Johannes Schindelin, Jul 3, 2007
  6. Gerrit PapeJul 4, 2007
  7. Uwe Kleine-KönigJul 4, 2007
  8. Paul MackerrasJul 4, 2007
  9. Junio C HamanoJul 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.