From 5183bf67278ce5a0da9779d74f05169beac219b8 Mon Sep 17 00:00:00 2001 From: Brian Collins Date: Fri, 6 Nov 2009 01:22:35 -0800 Subject: grep: Allow case insensitive search of fixed-strings "git grep" currently an error when you combine the -F and -i flags. This isn't in line with how GNU grep handles it. This patch allows the simultaneous use of those flags. Signed-off-by: Jeff King Signed-off-by: Brian Collins Signed-off-by: Junio C Hamano --- grep.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'grep.h') diff --git a/grep.h b/grep.h index f6eecc62c0..75370f60d7 100644 --- a/grep.h +++ b/grep.h @@ -32,6 +32,7 @@ struct grep_pat { enum grep_header_field field; regex_t regexp; unsigned fixed:1; + unsigned ignore_case:1; unsigned word_regexp:1; }; @@ -64,6 +65,7 @@ struct grep_opt { regex_t regexp; int linenum; int invert; + int ignore_case; int status_only; int name_only; int unmatch_name_only; -- cgit v1.2.3