]> git.ipfire.org Git - thirdparty/git.git/commit
for-each-ref: explicitly test no matches
authorDerrick Stolee <derrickstolee@github.com>
Mon, 20 Mar 2023 11:26:48 +0000 (11:26 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Mar 2023 19:17:32 +0000 (12:17 -0700)
commitb2c51b75902acfbb8ab8ac9aadc919bf5a447c1b
treea45a938141ea1b1cf2597da69dd32ed33bdad835
parentb73dec55309d9b4f7e0db95dba729af0fcafb67f
for-each-ref: explicitly test no matches

The for-each-ref builtin can take a list of ref patterns, but if none
match, it still succeeds (but with no output). Add an explicit test that
demonstrates that behavior.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6300-for-each-ref.sh