Re: git-grep: option parsing conflicts with prefix-dash searches
Jeff King <peff@peff.net> writes:
Show 14 quoted lines
> On Fri, Feb 05, 2010 at 08:53:36PM -0800, Junio C Hamano wrote:
>
>> > git grep -- pattern revision -- pathname
>> [...]
>> I don't think if "ambiguous or not" is what we are after to begin with.
>>
>> I have known GNU extended grep implementations long enough but never saw
>> that "--" used to quote a pattern. Is it worth supporting to begin with?
>
> I think so. It was the first thing the original poster in this thread
> tried. It is also something I have tried (and still do, then grumblingly
> retype "-e pattern"). And it certainly makes sense from a user
> perspective; it is the same end-of-options signal that most other
> programs take.
Ok, then let's take that (perhaps before 1.7.0 perhaps after).