Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-14 02:14:54 +0300
committerJunio C Hamano <gitster@pobox.com>2017-07-14 02:14:54 +0300
commiteac97b438c6734304c155604f4c36ac63f29ca6f (patch)
treef6c3d37a2a519535c5bdb7329d44662cac072f80 /builtin/grep.c
parent80145b1e412719c960036c8c62a9e35dd23a5b2d (diff)
parent1ceababc4c1817f86094dab1771e23da1ddaf443 (diff)
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.c2
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