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

Function bit_pos_to_object_id

pack-bitmap.c:2959–2971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2957}
2958
2959static void bit_pos_to_object_id(struct bitmap_index *bitmap_git,
2960 uint32_t bit_pos,
2961 struct object_id *oid)
2962{
2963 uint32_t index_pos;
2964
2965 if (bitmap_is_midx(bitmap_git))
2966 index_pos = pack_pos_to_midx(bitmap_git->midx, bit_pos);
2967 else
2968 index_pos = pack_pos_to_index(bitmap_git->pack, bit_pos);
2969
2970 nth_bitmap_object_oid(bitmap_git, oid, index_pos);
2971}
2972
2973int test_bitmap_pseudo_merges(struct repository *r)
2974{

Callers 1

dump_ewah_object_idsFunction · 0.85

Calls 4

bitmap_is_midxFunction · 0.85
pack_pos_to_midxFunction · 0.85
pack_pos_to_indexFunction · 0.85
nth_bitmap_object_oidFunction · 0.85

Tested by

no test coverage detected