author | Raphael Zimmerer <killekulla@rdrz.de> | |
Wed, 1 Oct 2008 16:11:15 +0000 (18:11 +0200) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 1 Oct 2008 16:14:54 +0000 (09:14 -0700) | ||
commit | 83caecca2f0805d440099d19011fdedc2b3467a5 | |
tree | fd5ba5878c5058991a7e9e3bde78a8908221e500 | tree | snapshot |
parent | 5e22e21769454857e00bc55be1f2eef8d873ba72 | commit | diff |
git grep: Add "-z/--null" option as in GNU's grep.
Here's a trivial patch that adds "-z" and "--null" options to "git
grep". It was discussed on the mailing-list that git's "-z"
convention should be used instead of GNU grep's "-Z".
So things like 'git grep -l -z "$FOO" | xargs -0 sed -i "s/$FOO/$BOO/"'
do work now.
Signed-off-by: Raphael Zimmerer <killekulla@rdrz.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Here's a trivial patch that adds "-z" and "--null" options to "git
grep". It was discussed on the mailing-list that git's "-z"
convention should be used instead of GNU grep's "-Z".
So things like 'git grep -l -z "$FOO" | xargs -0 sed -i "s/$FOO/$BOO/"'
do work now.
Signed-off-by: Raphael Zimmerer <killekulla@rdrz.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Documentation/git-grep.txt | diff | blob | history | |
builtin-grep.c | diff | blob | history | |
grep.c | diff | blob | history | |
grep.h | diff | blob | history |