git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
0a7e364
)
for_each_object_in_pack(): convert to new revindex API
author
Taylor Blau
<redacted>
Wed, 13 Jan 2021 22:24:49 +0000
(17:24 -0500)
committer
Junio C Hamano
<redacted>
Thu, 14 Jan 2021 05:53:47 +0000
(21:53 -0800)
Avoid looking at the 'revindex' pointer directly and instead call
'pack_pos_to_index()'.
Signed-off-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
packfile.c
patch
|
blob
|
history
diff --git
a/packfile.c
b/packfile.c
index 936ab3def53a3af1a0f42944874de483ef8f6601..7bb1750934982345b432272e39c5ad5b3d29c2e4 100644
(file)
--- 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 = p
ack_pos_to_index(p, i)
;
else
pos = i;
git clone https://git.99rst.org/PROJECT