From: Junio C Hamano Date: Thu, 05 Dec 2013 21:44:12 GMT Subject: Re: [BUG] redundant error message Message-ID: In-Reply-To: <20131205212851.GA21776@sigill.intra.peff.net> Jeff King writes: > BTW, the raw looping to find "--" made me wonder how we handle: > > git log --grep -- HEAD > > I'd expect it to be equivalent to: > > git log --grep=-- HEAD > > but it's not; we truncate the arguments and complain that --grep is > missing its argument. Which is probably good enough, given that the > alternative is doing a pass that understands all of the options. But it > does mean that the "--long-opt=arg" form is safer than the split form if > you are passing along an arbitrary "arg". ;-) Good flow of thought. As to your rev-parse change, I don't immediately think of a hole/flaw offhand; it looked a good straight-forward change to me.