summaryrefslogtreecommitdiff
path: root/grep.h
diff options
context:
space:
mode:
authorBrian Collins <bricollins@gmail.com>2009-11-06 09:22:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-11-17 00:06:46 (GMT)
commit5183bf67278ce5a0da9779d74f05169beac219b8 (patch)
tree3ff2119ec35588228c723069b1f21b061ac1c18d /grep.h
parent78d553b7d7b269bb22ebd8b1198657c37484a3a0 (diff)
downloadgit-5183bf67278ce5a0da9779d74f05169beac219b8.zip
git-5183bf67278ce5a0da9779d74f05169beac219b8.tar.gz
git-5183bf67278ce5a0da9779d74f05169beac219b8.tar.bz2
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 f6eecc6..75370f6 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;