| 2221 | } |
| 2222 | |
| 2223 | static 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 | |
| 2234 | struct packed_git **packfile_store_get_kept_pack_cache(struct packfile_store *store, |
| 2235 | unsigned flags) |
no outgoing calls
no test coverage detected