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

Function prepare_bitmap_git

pack-bitmap.c:740–749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740struct bitmap_index *prepare_bitmap_git(struct repository *r)
741{
742 struct bitmap_index *bitmap_git = xcalloc(1, sizeof(*bitmap_git));
743
744 if (!open_bitmap(r, bitmap_git) && !load_bitmap(r, bitmap_git, 0))
745 return bitmap_git;
746
747 free_bitmap_index(bitmap_git);
748 return NULL;
749}
750
751struct bitmap_index *prepare_midx_bitmap_git(struct multi_pack_index *midx)
752{

Callers 9

test_bitmap_walkFunction · 0.85
test_bitmap_commitsFunction · 0.85
test_bitmap_hashesFunction · 0.85
bitmap_writer_buildFunction · 0.85
batch_each_objectFunction · 0.85

Calls 4

xcallocFunction · 0.85
open_bitmapFunction · 0.85
load_bitmapFunction · 0.85
free_bitmap_indexFunction · 0.85

Tested by 7

test_bitmap_walkFunction · 0.68
test_bitmap_commitsFunction · 0.68
test_bitmap_hashesFunction · 0.68