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>
This commit is contained in:

committed by
Junio C Hamano

parent
0a7e3642bc
commit
b130aef65e
@ -2086,7 +2086,7 @@ int for_each_object_in_pack(struct packed_git *p,
|
|||||||
struct object_id oid;
|
struct object_id oid;
|
||||||
|
|
||||||
if (flags & FOR_EACH_OBJECT_PACK_ORDER)
|
if (flags & FOR_EACH_OBJECT_PACK_ORDER)
|
||||||
pos = p->revindex[i].nr;
|
pos = pack_pos_to_index(p, i);
|
||||||
else
|
else
|
||||||
pos = i;
|
pos = i;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user