| 224 | } |
| 225 | |
| 226 | static int nth_midxed_pack_midx_entry(struct multi_pack_index *m, |
| 227 | struct pack_midx_entry *e, |
| 228 | uint32_t pos) |
| 229 | { |
| 230 | if (pos >= m->num_objects + m->num_objects_in_base) |
| 231 | return 1; |
| 232 | |
| 233 | nth_midxed_object_oid(&e->oid, m, pos); |
| 234 | e->pack_int_id = nth_midxed_pack_int_id(m, pos); |
| 235 | e->offset = nth_midxed_offset(m, pos); |
| 236 | |
| 237 | /* consider objects in midx to be from "old" packs */ |
| 238 | e->pack_mtime = 0; |
| 239 | return 0; |
| 240 | } |
| 241 | |
| 242 | static void fill_pack_entry(uint32_t pack_int_id, |
| 243 | struct packed_git *p, |
no test coverage detected