diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-07-13 16:14:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-07-13 16:14:54 -0700 |
commit | eac97b438c6734304c155604f4c36ac63f29ca6f (patch) | |
tree | f6c3d37a2a519535c5bdb7329d44662cac072f80 /builtin/grep.c | |
parent | 80145b1e412719c960036c8c62a9e35dd23a5b2d (diff) | |
parent | 1ceababc4c1817f86094dab1771e23da1ddaf443 (diff) | |
download | git-eac97b438c6734304c155604f4c36ac63f29ca6f.tar.gz |
Merge branch 'ab/grep-lose-opt-regflags'
Code cleanup.
* ab/grep-lose-opt-regflags:
grep: remove redundant REG_NEWLINE when compiling fixed regex
grep: remove regflags from the public grep_opt API
grep: remove redundant and verbose re-assignments to 0
grep: remove redundant "fixed" field re-assignment to 0
grep: adjust a redundant grep pattern type assignment
grep: remove redundant double assignment to 0
Diffstat (limited to 'builtin/grep.c')
-rw-r--r-- | builtin/grep.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/builtin/grep.c b/builtin/grep.c index 0d6e669732..7e79eb1a75 100644 --- a/builtin/grep.c +++ b/builtin/grep.c @@ -1170,8 +1170,6 @@ int cmd_grep(int argc, const char **argv, const char *prefix) if (!opt.pattern_list) die(_("no pattern given.")); - if (!opt.fixed && opt.ignore_case) - opt.regflags |= REG_ICASE; /* * We have to find "--" in a separate pass, because its presence |