Hi,
to work the pattern should be on the same line...
is it normal?how can I can grep in all lines?
I thought --all-match does it!?


My test:
mkdir test
cd test
git init
echo -e "titi\ntoto" > file1
git add -A
git grep -l --all-match -e toto --and --not -e titi gives me file1

echo -e "titi toto" > file1
git grep -l --all-match -e toto --and --not -e titi returns me nothing,
which is correct


2014-09-29 15:38 GMT+02:00 Magnus Therning <mag...@therning.org>:

> On Thu, Sep 25, 2014 at 5:09 PM, iv <ivan.merc...@gmail.com> wrote:
> > git grep -l --all-match -e A --and --not -e B
> >
> > gives me files containing A and containing B or not
> > ...
>
> As I said, it works here.  If you put together a minimal example repo
> and either share it somewhere, or bundle it and share the bundle, then
> send an email with the exact command line (I'm guessing 'A' and 'B'
> above aren't what you're actually searching for).  Do that, and we
> might be able to help you further.
>
> /M
>
> --
> Magnus Therning                      OpenPGP: 0xAB4DFBA4
> email: mag...@therning.org   jabber: mag...@therning.org
> twitter: magthe               http://therning.org/magnus
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/VTuBkP8_AsU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to