From: Ævar Arnfjörð Bjarmason Date: Wed, 03 Feb 2021 03:28:03 GMT Subject: [PATCH 17/25] pickaxe tests: add test for "log -S" not being a regex Message-ID: <20210203032811.14979-18-avarab@gmail.com> In-Reply-To: <20210203032811.14979-1-avarab@gmail.com> No test in our test suite checked for "log -S" being a fixed string, as opposed to "log -S --pickaxe-regex". Let's test for it. Signed-off-by: Ævar Arnfjörð Bjarmason --- t/t4209-log-pickaxe.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/t/t4209-log-pickaxe.sh b/t/t4209-log-pickaxe.sh index ebd51f498b..b59aaecc68 100755 --- a/t/t4209-log-pickaxe.sh +++ b/t/t4209-log-pickaxe.sh @@ -121,6 +121,17 @@ test_expect_success 'log -G trims diff new/old [-+]' ' test_cmp log full-log ' +test_expect_success 'log -S is not a regex, but -S --pickaxe-regex is' ' + git -C GS-plain log -S"a" >log && + test_cmp log full-log && + + git -C GS-plain log -S"[a]" >log && + test_must_be_empty log && + + git -C GS-plain log -S"[a]" --pickaxe-regex >log && + test_cmp log full-log +' + test_expect_success 'setup log -[GS] binary & --text' ' test_create_repo GS-bin-txt && test_commit -C GS-bin-txt --append A data.bin "a\na\0a\n" && -- 2.30.0.284.gd98b1dd5eaa7