On Thu, Sep 25, 2014 at 06:38:49AM -0700, iv wrote:
> hi,
> does anyone know how to grep simply files containing pattern A and not 
> pattern B in all the lines...
> this doesn't work:
> git grep -l --all-match -e A --and --not -e B
> git version 2.1.0

That seems to work fine for me on 2.1.1.

I'm guessing you've removed the `-l` to verify the matches, right?


Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: mag...@therning.org   jabber: mag...@therning.org
twitter: magthe               http://therning.org/magnus

The results point out the fragility of programmer expertise: advanced
programmers have strong expectations about what programs should look like,
and when those expectations are violated--in seemingly innocuous
ways--their performance drops drastically.
     -- Elliot Soloway and Kate Ehrlich

Attachment: pgpM6YKv2Lyf4.pgp
Description: PGP signature

Reply via email to