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

Function mark_pack_kept_in_core

builtin/pack-objects.c:4226–4237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4224}
4225
4226static void mark_pack_kept_in_core(struct string_list *packs, unsigned keep)
4227{
4228 struct string_list_item *item = NULL;
4229 for_each_string_list_item(item, packs) {
4230 struct packed_git *p = item->util;
4231 if (!p)
4232 die(_("could not find pack '%s'"), item->string);
4233 if (p->is_cruft && keep)
4234 ignore_packed_keep_in_core_has_cruft = 1;
4235 p->pack_keep_in_core = keep;
4236 }
4237}
4238
4239static void add_objects_in_unpacked_packs(void);
4240

Callers 2

read_cruft_objectsFunction · 0.85

Calls 1

dieFunction · 0.50

Tested by

no test coverage detected