author | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Sep 2006 00:50:52 +0000 (17:50 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 28 Sep 2006 06:59:09 +0000 (23:59 -0700) | ||
commit | 0ab7befa31d07fe3ffb51a6cc626d4c09ded1c92 | |
tree | e72f754dde2eb05fa8da2c1acfbcf5b03cbdc5e9 | tree | snapshot |
parent | 2d5b459107cf07bbb307cfb196c2007c497a6dd2 | commit | diff |
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>
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 | diff | blob | history | |
builtin-grep.c | diff | blob | history | |
grep.c | diff | blob | history | |
grep.h | diff | blob | history |