Re: [PATCH] git grep: Add "-Z/--null" option as in GNU's grep.
Raphael Zimmerer <killekulla@rdrz.de> wrote:
> Here's a trivial patch that adds "-Z" and "--null" options to "git
> grep" equal to GNU's grep.
> So things like 'git grep -l -Z "$FOO" | xargs -0 sed -i "s/$FOO/$BOO/"'
> are more comfortable.
Elsewhere in Git we call this "-z", like "git ls-tree -z", "git
log -z". Should we match grep or git convention here?
> Documentation/git-grep.txt | 6 ++++++
> builtin-grep.c | 7 +++++++
> grep.c | 14 +++++++++++---
> grep.h | 1 +
--
Shawn.