Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: git-grep: option parsing conflicts with prefix-dash searches

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:48:11

Possibly related (same subject, not in this thread)

Jeff King [off-list ref] writes:
On Fri, Feb 05, 2010 at 08:53:36PM -0800, Junio C Hamano wrote:
quoted
quoted
  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).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help