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

Function maybe_invalidate_kept_pack_cache

packfile.c:2223–2232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2221}
2222
2223static void maybe_invalidate_kept_pack_cache(struct packfile_store *store,
2224 unsigned flags)
2225{
2226 if (!store->kept_cache.packs)
2227 return;
2228 if (store->kept_cache.flags == flags)
2229 return;
2230 FREE_AND_NULL(store->kept_cache.packs);
2231 store->kept_cache.flags = 0;
2232}
2233
2234struct packed_git **packfile_store_get_kept_pack_cache(struct packfile_store *store,
2235 unsigned flags)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected