| 240 | } |
| 241 | |
| 242 | static void fill_pack_entry(uint32_t pack_int_id, |
| 243 | struct packed_git *p, |
| 244 | uint32_t cur_object, |
| 245 | struct pack_midx_entry *entry, |
| 246 | int preferred) |
| 247 | { |
| 248 | if (nth_packed_object_id(&entry->oid, p, cur_object) < 0) |
| 249 | die(_("failed to locate object %d in packfile"), cur_object); |
| 250 | |
| 251 | entry->pack_int_id = pack_int_id; |
| 252 | entry->pack_mtime = p->mtime; |
| 253 | |
| 254 | entry->offset = nth_packed_object_offset(p, cur_object); |
| 255 | entry->preferred = !!preferred; |
| 256 | } |
| 257 | |
| 258 | struct midx_fanout { |
| 259 | struct pack_midx_entry *entries; |
no test coverage detected