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

Re: Make git-rev-list and git-rev-parse argument parsing stricter

From
Junio C Hamano <junkio@cox.net>
Date
Jan 25, 2006, 22:40 UTC
Message-ID
<7vhd7sorrw.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0601251655580.2644@evo.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 6 quoted lines
> If you pass it a filename without the "--" marker to separate it from
> revision information and flags, we now require that the file in question
> actually exists. This makes mis-typed revision information not be silently
> just considered a strange filename.
>...
> Comments?

I think it is a good safety measure. People has to say "git rev-list -- git-commit-script" if they are interested in historical paths, but that is less common. We could even go stronger and always require '--', but that is probably too much for normal use. I like the balance you struck here.

Previous: Linus Torvalds
Message 3 of 3 in “Make git-rev-list and git-rev-parse argument parsing stricter”
  1. Linus TorvaldsJan 25, 2006
  2. git-whatchanged: exit out early on errorsLinus Torvalds, Jan 25, 2006
  3. Junio C HamanoJan 25, 2006

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.