diff options
author | Brian Collins <bricollins@gmail.com> | 2009-11-06 10:22:35 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-17 01:06:46 +0100 |
commit | 5183bf67278ce5a0da9779d74f05169beac219b8 (patch) | |
tree | 3ff2119ec35588228c723069b1f21b061ac1c18d /grep.h | |
parent | GIT 1.6.5 (diff) | |
download | git-5183bf67278ce5a0da9779d74f05169beac219b8.tar.xz git-5183bf67278ce5a0da9779d74f05169beac219b8.zip |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; |