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

gitk handling of -- on commandline?

From
JFJ. Bruce Fields <bfields@fieldses.org>
Date
Mar 19, 2007, 03:36 UTC
Message-ID
<20070319033648.GA13374@fieldses.org>

Since I often use "TMP" as a name both for files and branches, I wasn't that suprised recently when

	gitk TMP

complained that "TMP" was ambiguous and asked me to use -- to separate filenames from revisions. I was a bit more surprised when it still did that after I gave it

	gitk TMP --

I looked through the source code very quickly but it wasn't obvious to me why this was happening. The reverse,

	gitk -- TMP
interestingly doesn't seem to have the same problem.
--b.
Message 1 of 1 in “gitk handling of -- on commandline?”
  1. J. Bruce FieldsMar 19, 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.