]> git.ipfire.org Git - thirdparty/git.git/commit
t: add test for git refs optimize subcommand
authorMeet Soni <meetsoni3017@gmail.com>
Fri, 19 Sep 2025 08:26:47 +0000 (13:56 +0530)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Sep 2025 17:02:56 +0000 (10:02 -0700)
commitc44afd67d2bcfc2958e7cc79d7064ab5fcfa468a
treecde601b3c4e772168e245d907f56248b0634b984
parentac0bad0af488aa25ffb2363f79b7e5728fd0cf97
t: add test for git refs optimize subcommand

Add a test script, `t/t1463-refs-optimize.sh`, for the new `git refs
optimize` command.

This script acts as a simple driver, leveraging the shared test library
created in the preceding commit. It works by overriding the
`$pack_refs` variable to "refs optimize" and then sourcing the
shared library (`t/pack-refs-tests.sh`).

This approach ensures that `git refs optimize` is tested against the
entire comprehensive test suite of `git pack-refs`, verifying
that it acts as a compatible drop-in replacement.

Mentored-by: Patrick Steinhardt <ps@pks.im>
Mentored-by: shejialuo <shejialuo@gmail.com>
Signed-off-by: Meet Soni <meetsoni3017@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/meson.build
t/t1463-refs-optimize.sh [new file with mode: 0755]