]> Kevux Git Server - rit/commit
builtin/repack.c: avoid "the_repository" when removing packs
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:27:27 +0000 (18:27 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:53 +0000 (10:08 -0700)
commit03015747584e9f96c7ad6b57ecd99aa694312333
tree27889d154c5157b8ff3c9912427d602924d4167c
parent94d99de7724bce0325de8293fa1c2312d5960d7c
builtin/repack.c: avoid "the_repository" when removing packs

The 'remove_redundant_pack()' function uses "the_repository" to obtain,
and optionally remove, the repository's MIDX. Instead of relying on
"the_repository", pass around a "struct repository *" parameter through
its callers, and use that instead.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c