]> git.ipfire.org Git - thirdparty/git.git/commit
midx-write.c: factor fanout layering from `compute_sorted_entries()`
authorTaylor Blau <me@ttaylorr.com>
Wed, 14 Jan 2026 19:55:01 +0000 (14:55 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Jan 2026 20:52:59 +0000 (12:52 -0800)
commit9c8ae2706ac1b5db138106e55e7a2d60203f5557
tree84eb3adf5a0c43dc20a1ffa0624d7784574f8c11
parent8145f2d4ffb0b3db22c2a8a1429d92daa6b0caed
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