for_each_object_in_pack(): convert to new revindex API

Avoid looking at the 'revindex' pointer directly and instead call 'pack_pos_to_index()'. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Jan 13, 2021 at 17:24 UTC b130aef65e492667229191dfd0689b74d88c6a84
1 file changed +1 -1
packfile.c
+1 -1
@@ -2086,7 +2086,7 @@ int for_each_object_in_pack(struct packed_git *p,
2086 struct object_id oid;
2087
2088 if (flags & FOR_EACH_OBJECT_PACK_ORDER)
2089 - pos = p->revindex[i].nr;
2089 + pos = pack_pos_to_index(p, i);
2090 else
2091 pos = i;
2092