summaryrefslogtreecommitdiff
path: root/t/t5542-push-http-shallow.sh
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2022-02-16 01:00:38 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-15 18:00:50 -0800
commitae807d778f502c81ec55897ac6d1f42ef3a4e23b (patch)
tree63d0cea93f9e17d7b54a277a6e1f6788a76cd2d4 /t/t5542-push-http-shallow.sh
parentgrep.h: make "grep_opt.pattern_type_option" use its enum (diff)
downloadtgif-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/t5542-push-http-shallow.sh')
0 files changed, 0 insertions, 0 deletions