| 1054 | } |
| 1055 | |
| 1056 | static inline int bitmap_position_extended(struct bitmap_index *bitmap_git, |
| 1057 | const struct object_id *oid) |
| 1058 | { |
| 1059 | kh_oid_pos_t *positions = bitmap_git->ext_index.positions; |
| 1060 | khiter_t pos = kh_get_oid_pos(positions, *oid); |
| 1061 | |
| 1062 | if (pos < kh_end(positions)) { |
| 1063 | int bitmap_pos = kh_value(positions, pos); |
| 1064 | return bitmap_pos + bitmap_num_objects_total(bitmap_git); |
| 1065 | } |
| 1066 | |
| 1067 | return -1; |
| 1068 | } |
| 1069 | |
| 1070 | static inline int bitmap_position_packfile(struct bitmap_index *bitmap_git, |
| 1071 | const struct object_id *oid) |
no test coverage detected