MCPcopy Create free account
hub / github.com/git/git / fill_pack_from_midx

Function fill_pack_from_midx

midx-write.c:957–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

955}
956
957static 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
972static int fill_packs_from_midx(struct write_midx_context *ctx)
973{

Callers 2

fill_packs_from_midxFunction · 0.85

Calls 3

prepare_midx_packFunction · 0.85
errorFunction · 0.85
fill_pack_infoFunction · 0.85

Tested by

no test coverage detected