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

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

From: Jan Engelhardt <hidden>
Date: 2016-06-15 22:48:11

On Saturday 2010-02-06 00:09, Jan Engelhardt wrote:
What works is (3).

(3)	$ git grep -- -- '->cnt' net/ipv4/netfilter/
No, I spoke too soon. This command will search for --, not ->cnt.
So git cannot search for patterns starting with a dash at all,
as I see it. This is getting fun..
As I said, it's a mess. And I know not whether any code can convince
the "but we need to watch compatibility"-sayers, because this would
definitely be a flag change.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help