]> git.ipfire.org Git - thirdparty/git.git/commit
midx-write.c: extract `fill_packs_from_midx()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 29 May 2024 22:55:36 +0000 (18:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 May 2024 20:43:51 +0000 (13:43 -0700)
commitc5e204af1f395f38724aff08c3440aa86fdd9657
treedba15528a5b006557f9f158651143c646caad766
parent364c0ffc5a3b23071eced255b50f1191a0deffd7
midx-write.c: extract `fill_packs_from_midx()`

When write_midx_internal() loads an existing MIDX, all packs are copied
forward into the new MIDX. Improve the readability of
write_midx_internal() by extracting this functionality out into a
separate function.

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