]> Kevux Git Server - rit/commit
midx-write.c: factor fanout layering from `compute_sorted_entries()`
authorTaylor Blau <me@ttaylorr.com>
Tue, 24 Feb 2026 19:00:30 +0000 (14:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Feb 2026 19:16:34 +0000 (11:16 -0800)
commit9aea84c4e78b462fe55d142e67997b90d8ee3055
treed468c902187747abc5dea44956664ba3dfa88062
parent93c67df7511057e7c8fda169671a44322c04c2d0
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