]> git.ipfire.org Git - thirdparty/git.git/commit
t/helper: drop pack-refs wrapper
authorPatrick Steinhardt <ps@pks.im>
Mon, 25 Mar 2024 10:02:59 +0000 (11:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Mar 2024 16:54:07 +0000 (09:54 -0700)
commited12124d4a809c832ae7f963ecc71104ba5cd55b
treeb072e18f3ac02c87e588b10917114effc6cbd70f
parent4ccf7060d8d0a3c08d1fb03b038a164eb4913d02
t/helper: drop pack-refs wrapper

The test helper provides a "ref-store <store> pack-refs" wrapper that
more or less directly invokes `refs_pack_refs()`. This helper is only
used in a single test with the "PACK_REFS_PRUNE" and "PACK_REFS_ALL"
flags. Both of these flags can directly be accessed via git-pack-refs(1)
though via the `--all` and `--prune` flags, which makes the helper
superfluous.

Refactor the test to use git-pack-refs(1) instead of the test helper.
Drop the now-unused test helper command.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-ref-store.c
t/t0601-reffiles-pack-refs.sh