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

[BUG] gitk fails with argument that is both existing directory and branch name

From
Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date
Jul 3, 2007, 20:23 UTC
Message-ID
<20070703202301.GA24071@informatik.uni-freiburg.de>
Hello,
I have a branch named fixes in my linux repo and until I did:
	git format-patch -o fixes linus/master 
the following command worked fine:
	
	gitk ^linus/master fixes

but now that there is a directory named fixes, nothing happens when running gitk. With rev-list I get

	zeisberg@cassiopeia:~/gsrc/linux-2.6$ git rev-list ^linus/master fixes
	fatal: ambiguous argument 'fixes': both revision and filename
	Use '--' to separate filenames from revisions
but 
	
	gitk ^linus/master fixes --

doesn't work either. I'd suspect that the call to rev-list doesn't see the "--" and the error is lost somewhere inbetween ...?

I currently have no time to look into it, so for now you only get a report.

Best regards Uwe

-- 
Uwe Kleine-König

http://www.google.com/search?q=i+squared
Next: Johannes Schindelin
Message 1 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.