git grep -l --all-match -e A --and --not -e B
gives me files containing A and containing B or not
Le jeudi 25 septembre 2014 16:44:33 UTC+2, iv a écrit :
> of course, "-l" gives you name only...
> Le jeudi 25 septembre 2014 16:11:34 UTC+2, Magnus Therning a écrit :
>> 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
>> and when those expectations are violated--in seemingly innocuous
>> ways--their performance drops drastically.
>> -- Elliot Soloway and Kate Ehrlich
You received this message because you are subscribed to the Google Groups "Git
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.