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

Function remove_redundant_packs_1

repack.c:292–304  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292static void remove_redundant_packs_1(struct repository *repo,
293 struct string_list *packs,
294 const char *packdir,
295 bool wrote_incremental_midx)
296{
297 struct string_list_item *item;
298 for_each_string_list_item(item, packs) {
299 if (!existing_pack_is_marked_for_deletion(item))
300 continue;
301 repack_remove_redundant_pack(repo, packdir, item->string,
302 wrote_incremental_midx);
303 }
304}
305
306void existing_packs_remove_redundant(struct existing_packs *existing,
307 const char *packdir,

Callers 1

Tested by

no test coverage detected