Git development
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@osdl.org>
To: Junio C Hamano <junkio@cox.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: git-rev-parse: pass on "--" flag when required
Date: Thu, 20 Oct 2005 17:24:03 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0510201720420.10477@g5.osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0510201711380.10477@g5.osdl.org>



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

      reply	other threads:[~2005-10-21  0:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21  0:16 git-rev-parse: pass on "--" flag when required Linus Torvalds
2005-10-21  0:24 ` Linus Torvalds [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0510201720420.10477@g5.osdl.org \
    --to=torvalds@osdl.org \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox