From: Shawn O. Pearce Date: Tue, 30 Sep 2008 23:16:19 GMT Subject: Re: [PATCH] git grep: Add "-Z/--null" option as in GNU's grep. Message-ID: <20080930231619.GR21310@spearce.org> In-Reply-To: <1222816390-9141-1-git-send-email-killekulla@rdrz.de> Raphael Zimmerer 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.