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

Function bitmap_bsearch_pos

pack-bitmap.c:850–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

848}
849
850static uint32_t bitmap_bsearch_pos(struct bitmap_index *bitmap_git,
851 struct object_id *oid,
852 uint32_t *result)
853{
854 int found;
855
856 if (bitmap_is_midx(bitmap_git))
857 found = bsearch_midx(oid, bitmap_git->midx, result);
858 else
859 found = bsearch_pack(oid, bitmap_git->pack, result);
860
861 return found;
862}
863
864/*
865 * `bsearch_triplet_by_pos` function searches for the raw triplet

Callers 1

lazy_bitmap_for_commitFunction · 0.85

Calls 3

bitmap_is_midxFunction · 0.85
bsearch_midxFunction · 0.85
bsearch_packFunction · 0.85

Tested by

no test coverage detected