]> git.ipfire.org Git - thirdparty/git.git/commit
t1403: split 'show-ref --exists' tests into a separate file
authorMeet Soni <meetsoni3017@gmail.com>
Tue, 26 Aug 2025 06:41:08 +0000 (12:11 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Sep 2025 16:58:35 +0000 (09:58 -0700)
commit0749b93ab369cda5e316da1c2a87d325ce02fe1d
tree8a9057ef0254ae52d592669fb44fd0b934a1ce77
parent0f0a8a11c00295ed30b02cc721b0994900c6a3d3
t1403: split 'show-ref --exists' tests into a separate file

The test file for git-show-ref(1), `t1403-show-ref.sh`, contains a group
of tests for the '--exists' flag. To improve organization and to prepare
for refactoring these tests to be shareable, move the '--exists' tests
and their corresponding setup logic into a self-contained test suite,
`t1422-show-ref-exists.sh`.

This is a pure code-movement refactoring with no change in test coverage
or behavior.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Acked-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/meson.build
t/t1403-show-ref.sh
t/t1422-show-ref-exists.sh [new file with mode: 0644]