diff options
| author | Taylor Blau <me@ttaylorr.com> | 2026-02-24 14:00:26 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-24 11:16:34 -0800 |
| commit | 93c67df7511057e7c8fda169671a44322c04c2d0 (patch) | |
| tree | db23b3e288e82f16389f7175a9fbefe1896ab8ab /replace-object.c | |
| parent | 5f3e7f7279da72b20f99a2bcd26d146f7edaef9d (diff) | |
| download | git-93c67df7511057e7c8fda169671a44322c04c2d0.tar.xz | |
midx-write.c: enumerate `pack_int_id` values directly
Our `midx-write.c::fill_packs_from_midx()` function currently enumerates
the range [0, m->num_packs), and then shifts its index variable up by
`m->num_packs_in_base` to produce a valid `pack_int_id`.
Instead, directly enumerate the range:
[m->num_packs_in_base, m->num_packs_in_base + m->num_packs)
, which are the original pack_int_ids themselves as opposed to the
indexes of those packs relative to the MIDX layer they are contained
within.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'replace-object.c')
0 files changed, 0 insertions, 0 deletions
