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

Function bitmap_position_midx

pack-bitmap.c:1083–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083static int bitmap_position_midx(struct bitmap_index *bitmap_git,
1084 const struct object_id *oid)
1085{
1086 uint32_t want, got;
1087 if (!bsearch_midx(oid, bitmap_git->midx, &want))
1088 return -1;
1089
1090 if (midx_to_pack_pos(bitmap_git->midx, want, &got) < 0)
1091 return -1;
1092 return got;
1093}
1094
1095static int bitmap_position(struct bitmap_index *bitmap_git,
1096 const struct object_id *oid)

Callers 1

bitmap_positionFunction · 0.85

Calls 2

bsearch_midxFunction · 0.85
midx_to_pack_posFunction · 0.85

Tested by

no test coverage detected