]> git.99rst.org Git - git.git/commit
midx.c: extract `midx_fanout_add_midx_fanout()`
authorTaylor Blau <redacted>
Mon, 22 Aug 2022 19:50:41 +0000 (15:50 -0400)
committerJunio C Hamano <redacted>
Mon, 22 Aug 2022 20:04:22 +0000 (13:04 -0700)
commit852c530102c5ca5b69ae863acaa1acb50cbba861
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
midx.c
git clone https://git.99rst.org/PROJECT