]> git.99rst.org Git - git.git/commit
midx: teach `nth_midxed_offset()` about incremental MIDXs
authorTaylor Blau <redacted>
Tue, 6 Aug 2024 15:37:36 +0000 (11:37 -0400)
committerJunio C Hamano <redacted>
Tue, 6 Aug 2024 19:01:37 +0000 (12:01 -0700)
commitdf7ede83be829f983cd54539eb6fe0e6bddc8c9e
tree31ff414a82d64112fb75b7bdd51c341519d2c30c
parent88f309e095d084d730f908fe1ec01a92c63612c2
midx: teach `nth_midxed_offset()` about incremental MIDXs

In a similar fashion as in previous commits, teach the function
`nth_midxed_offset()` about incremental MIDXs.

The given object `pos` is used to find the containing MIDX, and
translated back into a MIDX-local position by assigning the return value
of `midx_for_object()` to it.

Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
midx.c
git clone https://git.99rst.org/PROJECT