Skip to content

Commit b130aef

Browse files
ttaylorrgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0a7e364 commit b130aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ int for_each_object_in_pack(struct packed_git *p,
20862086
struct object_id oid;
20872087

20882088
if (flags & FOR_EACH_OBJECT_PACK_ORDER)
2089-
pos = p->revindex[i].nr;
2089+
pos = pack_pos_to_index(p, i);
20902090
else
20912091
pos = i;
20922092

0 commit comments

Comments
 (0)