summaryrefslogtreecommitdiff
path: root/packfile.c
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-01-13 17:24:49 -0500
committerJunio C Hamano <gitster@pobox.com>2021-01-13 21:53:47 -0800
commitb130aef65e492667229191dfd0689b74d88c6a84 (patch)
treefe28a3efab2633dea90c19ac65a347fa7ab9c728 /packfile.c
parent0a7e3642bc0d42a2c322886e64872ac9d736fa84 (diff)
downloadgit-b130aef65e492667229191dfd0689b74d88c6a84.tar.gz
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>
Diffstat (limited to 'packfile.c')
-rw-r--r--packfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c
index 936ab3def5..7bb1750934 100644
--- a/packfile.c
+++ b/packfile.c
@@ -2086,7 +2086,7 @@ int for_each_object_in_pack(struct packed_git *p,
struct object_id oid;
if (flags & FOR_EACH_OBJECT_PACK_ORDER)
- pos = p->revindex[i].nr;
+ pos = pack_pos_to_index(p, i);
else
pos = i;