MCPcopy Index your code
hub / github.com/git/git / load_reverse_index

Function load_reverse_index

pack-bitmap.c:599–624  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599static int load_reverse_index(struct repository *r, struct bitmap_index *bitmap_git)
600{
601 if (bitmap_is_midx(bitmap_git)) {
602 struct multi_pack_index *m;
603
604 /*
605 * The multi-pack-index's .rev file is already loaded via
606 * open_pack_bitmap_1().
607 *
608 * But we still need to open the individual pack .rev files,
609 * since we will need to make use of them in pack-objects.
610 */
611 for (m = bitmap_git->midx; m; m = m->base_midx) {
612 uint32_t i;
613 int ret;
614
615 for (i = 0; i < m->num_packs; i++) {
616 ret = load_pack_revindex(r, m->packs[i]);
617 if (ret)
618 return ret;
619 }
620 }
621 return 0;
622 }
623 return load_pack_revindex(r, bitmap_git->pack);
624}
625
626static void load_all_type_bitmaps(struct bitmap_index *bitmap_git)
627{

Callers 3

load_bitmapFunction · 0.85
create_bitmap_mappingFunction · 0.85

Calls 2

bitmap_is_midxFunction · 0.85
load_pack_revindexFunction · 0.85

Tested by

no test coverage detected