]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/repack.c: inline `remove_redundant_bitmaps()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 15 Oct 2025 22:29:05 +0000 (18:29 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2025 17:08:56 +0000 (10:08 -0700)
commit337baea7212f0cf1aaa00a885d75098e260a22b0
tree45725b9e718a2a796819b7d2c946938e6f30ffc0
parent42088e3d4ae5c5bc77a49fcbba79832d10d03499
builtin/repack.c: inline `remove_redundant_bitmaps()`

After writing a new MIDX, the repack command removes any bitmaps
belonging to packs which were written into the MIDX.

This is currently done in a separate function outside of
`write_midx_included_packs()`, which forces the caller to keep track of
the set of packs written into the MIDX.

Prepare to no longer require the caller to keep track of such
information by inlining the clean-up into `write_midx_included_packs()`.
Future commits will make the caller oblivious to the set of packs
included in the MIDX altogether.

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