summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorBrian Collins <bricollins@gmail.com>2009-11-06 01:22:35 -0800
committerJunio C Hamano <gitster@pobox.com>2009-11-16 16:06:46 -0800
commit5183bf67278ce5a0da9779d74f05169beac219b8 (patch)
tree3ff2119ec35588228c723069b1f21b061ac1c18d /grep.h
parent78d553b7d7b269bb22ebd8b1198657c37484a3a0 (diff)
downloadgit-5183bf67278ce5a0da9779d74f05169beac219b8.tar.gz
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 <peff@peff.net> Signed-off-by: Brian Collins <bricollins@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.h')
-rw-r--r--grep.h2
1 files changed, 2 insertions, 0 deletions
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;