| 1068 | } |
| 1069 | |
| 1070 | static inline int bitmap_position_packfile(struct bitmap_index *bitmap_git, |
| 1071 | const struct object_id *oid) |
| 1072 | { |
| 1073 | uint32_t pos; |
| 1074 | off_t offset = find_pack_entry_one(oid, bitmap_git->pack); |
| 1075 | if (!offset) |
| 1076 | return -1; |
| 1077 | |
| 1078 | if (offset_to_pack_pos(bitmap_git->pack, offset, &pos) < 0) |
| 1079 | return -1; |
| 1080 | return pos; |
| 1081 | } |
| 1082 | |
| 1083 | static int bitmap_position_midx(struct bitmap_index *bitmap_git, |
| 1084 | const struct object_id *oid) |
no test coverage detected