| 848 | } |
| 849 | |
| 850 | static 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 |
no test coverage detected