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

Function packfile_store_get_packs

packfile.c:1093–1104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093struct packfile_list_entry *packfile_store_get_packs(struct packfile_store *store)
1094{
1095 packfile_store_prepare(store);
1096
1097 if (store->midx) {
1098 struct multi_pack_index *m = store->midx;
1099 for (uint32_t i = 0; i < m->num_packs + m->num_packs_in_base; i++)
1100 prepare_midx_pack(m, i);
1101 }
1102
1103 return store->packs.head;
1104}
1105
1106int packfile_store_count_objects(struct packfile_store *store,
1107 enum odb_count_objects_flags flags UNUSED,

Calls 2

packfile_store_prepareFunction · 0.85
prepare_midx_packFunction · 0.85

Tested by

no test coverage detected