]> git.ipfire.org Git - thirdparty/git.git/commit
grep tests: create a helper function for "BRE" or "ERE"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 16 Feb 2022 00:00:32 +0000 (01:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Feb 2022 02:00:49 +0000 (18:00 -0800)
commitccb1fccc21331122ad1c7c247122cb7c48787361
tree3ab94cfadfbdbd039198503515c1f7d573e37ec7
parentff37a60c36959cc1d774e1a9b266291962e8624d
grep tests: create a helper function for "BRE" or "ERE"

Refactor the repeated test code for finding out whether a given set of
configuration will pick basic, extended or fixed into a new
"test_pattern_type" helper function.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7810-grep.sh