diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-16 01:00:38 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-15 18:00:50 -0800 |
commit | ae807d778f502c81ec55897ac6d1f42ef3a4e23b (patch) | |
tree | 63d0cea93f9e17d7b54a277a6e1f6788a76cd2d4 /t/t6102-rev-list-unexpected-objects.sh | |
parent | grep.h: make "grep_opt.pattern_type_option" use its enum (diff) | |
download | tgif-ae807d778f502c81ec55897ac6d1f42ef3a4e23b.tar.xz |
grep.c: do "if (bool && memchr())" not "if (memchr() && bool)"
Change code in compile_regexp() to check the cheaper boolean
"!opt->pcre2" condition before the "memchr()" search.
This doesn't noticeably optimize anything, but makes the code more
obvious and conventional. The line wrapping being added here also
makes a subsequent commit smaller.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6102-rev-list-unexpected-objects.sh')
0 files changed, 0 insertions, 0 deletions