Re: git-grep: option parsing conflicts with prefix-dash searches
- From
- Jan Engelhardt <jengelh@medozas.de>
- Date
- Feb 5, 2010, 23:17 UTC
- Message-ID
- <alpine.LSU.2.01.1002060009430.30204@obet.zrqbmnf.qr>
- In-Reply-To
- <alpine.LSU.2.01.1002052351060.30204@obet.zrqbmnf.qr>
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.