]> git.99rst.org Git - git.git/commit
builtin/repack.c: avoid "the_repository" when removing packs
authorTaylor Blau <redacted>
Wed, 15 Oct 2025 22:27:27 +0000 (18:27 -0400)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/repack.c
git clone https://git.99rst.org/PROJECT