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

Function open_midx_bitmap

pack-bitmap.c:704–719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704static int open_midx_bitmap(struct repository *r,
705 struct bitmap_index *bitmap_git)
706{
707 struct odb_source *source;
708 int ret = -1;
709
710 assert(!bitmap_git->map);
711
712 odb_prepare_alternates(r->objects);
713 for (source = r->objects->sources; source; source = source->next) {
714 struct multi_pack_index *midx = get_multi_pack_index(source);
715 if (midx && !open_midx_bitmap_1(bitmap_git, midx))
716 ret = 0;
717 }
718 return ret;
719}
720
721static int open_bitmap(struct repository *r,
722 struct bitmap_index *bitmap_git)

Callers 1

open_bitmapFunction · 0.85

Calls 3

odb_prepare_alternatesFunction · 0.85
get_multi_pack_indexFunction · 0.85
open_midx_bitmap_1Function · 0.85

Tested by

no test coverage detected