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 <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Jan 13, 2021 at 17:24 UTC 78232bf65d59601fad99b4f45a90effaf0ac1204
1 file changed +2 -3
pack-bitmap.c
+2 -3
@@ -1392,11 +1392,10 @@ uint32_t *create_bitmap_mapping(struct bitmap_index *bitmap_git,
1392
1393 for (i = 0; i < num_objects; ++i) {
1394 struct object_id oid;
1395 - struct revindex_entry *entry;
1395 struct object_entry *oe;
1396
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));
1399 oe = packlist_find(mapping, &oid);
1400
1401 if (oe)