From 83caecca2f0805d440099d19011fdedc2b3467a5 Mon Sep 17 00:00:00 2001 From: Raphael Zimmerer Date: Wed, 1 Oct 2008 18:11:15 +0200 Subject: 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 Signed-off-by: Shawn O. Pearce --- grep.h | 1 + 1 file changed, 1 insertion(+) (limited to 'grep.h') diff --git a/grep.h b/grep.h index 59b3f871ea..45a222d904 100644 --- a/grep.h +++ b/grep.h @@ -74,6 +74,7 @@ struct grep_opt { unsigned extended:1; unsigned relative:1; unsigned pathname:1; + unsigned null_following_name:1; int regflags; unsigned pre_context; unsigned post_context; -- cgit v1.2.1