| 955 | } |
| 956 | |
| 957 | static int fill_pack_from_midx(struct pack_info *info, |
| 958 | struct multi_pack_index *m, |
| 959 | uint32_t pack_int_id) |
| 960 | { |
| 961 | if (prepare_midx_pack(m, pack_int_id)) |
| 962 | return error(_("could not load pack %d"), pack_int_id); |
| 963 | |
| 964 | fill_pack_info(info, |
| 965 | m->packs[pack_int_id - m->num_packs_in_base], |
| 966 | m->pack_names[pack_int_id - m->num_packs_in_base], |
| 967 | pack_int_id); |
| 968 | |
| 969 | return 0; |
| 970 | } |
| 971 | |
| 972 | static int fill_packs_from_midx(struct write_midx_context *ctx) |
| 973 | { |
no test coverage detected