]> git.ipfire.org Git - thirdparty/git.git/commit - grep.c
grep --all-match
authorJunio C Hamano <junkio@cox.net>
Thu, 28 Sep 2006 00:50:52 +0000 (17:50 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 28 Sep 2006 06:59:09 +0000 (23:59 -0700)
commit0ab7befa31d07fe3ffb51a6cc626d4c09ded1c92
treee72f754dde2eb05fa8da2c1acfbcf5b03cbdc5e9
parent2d5b459107cf07bbb307cfb196c2007c497a6dd2
grep --all-match

This lets you say:

git grep --all-match -e A -e B -e C

to find lines that match A or B or C but limit the matches from
the files that have all of A, B and C.

This is different from

git grep -e A --and -e B --and -e C

in that the latter looks for a single line that has all of these
at the same time.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-grep.txt
builtin-grep.c
grep.c
grep.h