Skip to content

Commit 78232bf

Browse files
ttaylorrgitster
authored andcommitted
rebuild_existing_bitmaps(): convert to new revindex API
Remove another instance of looking at the revindex directly by instead calling 'pack_pos_to_index()'. Unlike other patches, this caller only cares about the index position of each object in the loop. Signed-off-by: Taylor Blau <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 011f3fd commit 78232bf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pack-bitmap.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,11 +1392,10 @@ uint32_t *create_bitmap_mapping(struct bitmap_index *bitmap_git,
13921392

13931393
for (i = 0; i < num_objects; ++i) {
13941394
struct object_id oid;
1395-
struct revindex_entry *entry;
13961395
struct object_entry *oe;
13971396

1398-
entry = &bitmap_git->pack->revindex[i];
1399-
nth_packed_object_id(&oid, bitmap_git->pack, entry->nr);
1397+
nth_packed_object_id(&oid, bitmap_git->pack,
1398+
pack_pos_to_index(bitmap_git->pack, i));
14001399
oe = packlist_find(mapping, &oid);
14011400

14021401
if (oe)

0 commit comments

Comments
 (0)