midx.c: extract `midx_fanout_add_midx_fanout()`
commit852c530102c5ca5b69ae863acaa1acb50cbba861
authorTaylor Blau <me@ttaylorr.com>
Mon, 22 Aug 2022 19:50:41 +0000 (22 15:50 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Aug 2022 20:04:22 +0000 (22 13:04 -0700)
treeedb6cec740c79aa80eea2a4e08b89d0ef0573b79
parent989d9cbd5c32fad54391a4ed06b1271f0a891077
midx.c: extract `midx_fanout_add_midx_fanout()`

Extract a routine to add all objects whose object ID's first byte is
`cur_fanout` from an existing MIDX.

This function will only be called once, so extracting it is purely
cosmetic to improve the readability of `get_sorted_entries()` (its sole
caller) below.

The functionality is unchanged in this commit.

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