From: Jan Engelhardt Date: Fri, 05 Feb 2010 23:17:49 GMT Subject: Re: git-grep: option parsing conflicts with prefix-dash searches Message-ID: In-Reply-To: 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.