Re: git-rev-parse: pass on "--" flag when required

From: Linus Torvalds <torvalds@osdl.org>
Date: 2005-10-21 10:24:03
On Thu, 20 Oct 2005, Linus Torvalds wrote:
> 
> If rev-parse output includes both flags and files, we should pass on any 
> "--" marker we see, so that the end result can also tell the difference 
> between a flag and a filename that begins with '-'.

Btw, if it wasn't obvious, this is also required to keep files and revs 
separate.

I don't think we have anything that cares right now, but I'm working on 
trying to get "git-rev-list" to limit its output to the files given on the 
command line, and then I want to be able to do

	gitk -- rev-list.c

and in my version of git-rev-list, the "--" is required to separate out 
the revs from the names (since otherwise it's just too error-prone).

That requires that git-rev-parse not only honor "--", but pass it through 
when the output can contain both revs/flags _and_ filenames.

			Linus
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Oct 21 10:24:43 2005

This archive was generated by hypermail 2.1.8 : 2005-10-21 10:24:51 EST