[PATCH 0/5] grep: remove redundant code & reflags from API
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- Jun 28, 2017, 21:58 UTC
- Message-ID
- <20170628215809.23060-1-avarab@gmail.com>
- In-Reply-To
- <CACBZZX6Hp4Q4TOj_X1fbdCA4twoXF5JemZ5ZbEn7wmkA=1KO2g@mail.gmail.com>
Here's a follow-up to a small tangent of discussion in my ~30 patch grep cleanup series.
There are no functional changes here, just getting rid of dead code, and removing the POSIX `regflags` variable from the grep API used by grep/log, which was the cause of the long-standing bug of "-i" not working with PCRE when used via git-log.
Ævar Arnfjörð Bjarmason (5): grep: remove redundant double assignment to 0 grep: remove redundant grep pattern type assignment grep: remove redundant "fixed" field re-assignment to 0 grep: remove redundant and verbose re-assignments to 0 grep: remove regflags from the public grep_opt API
builtin/grep.c | 2 -- grep.c | 59 +++++++++++++++++++++++++++++++++------------------------- grep.h | 1 - revision.c | 2 -- 4 files changed, 34 insertions(+), 30 deletions(-)
-- 2.13.1.611.g7e3b11ae1