]> git.ipfire.org Git - thirdparty/git.git/commit
midx-write.c: factor fanout layering from `compute_sorted_entries()`
authorTaylor Blau <me@ttaylorr.com>
Sat, 6 Dec 2025 20:31:40 +0000 (15:31 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Dec 2025 22:38:10 +0000 (07:38 +0900)
commit477f9c1b2128bce41c85e4bacf5e9000ba565ea8
treeaf490a8d30965558ed6a703dac3dd22313f52e7d
parentcad0632e1334bd5c73b1d9e4e17f541ebc1b430b
midx-write.c: factor fanout layering from `compute_sorted_entries()`

When computing the set of objects to appear in a MIDX, we use
compute_sorted_entries(), which handles objects from various existing
sources one fanout layer at a time.

The process for computing this set is slightly different during MIDX
compaction, so factor out the existing functionality into its own
routine to prevent `compute_sorted_entries()` from becoming too
difficult to read.

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