MCPcopy Index your code
hub / github.com/git/git / detach_delta_base_cache_entry

Function detach_delta_base_cache_entry

packfile.c:1512–1518  ·  view source on GitHub ↗

* Remove the entry from the cache, but do _not_ free the associated * entry data. The caller takes ownership of the "data" buffer, and * should copy out any fields it wants before detaching. */

Source from the content-addressed store, hash-verified

1510 * should copy out any fields it wants before detaching.
1511 */
1512static void detach_delta_base_cache_entry(struct delta_base_cache_entry *ent)
1513{
1514 hashmap_remove(&delta_base_cache, &ent->ent, &ent->key);
1515 list_del(&ent->lru);
1516 delta_base_cached -= ent->size;
1517 free(ent);
1518}
1519
1520static void *cache_or_unpack_entry(struct repository *r, struct packed_git *p,
1521 off_t base_offset, size_t *base_size,

Callers 2

release_delta_base_cacheFunction · 0.85
unpack_entryFunction · 0.85

Calls 2

hashmap_removeFunction · 0.85
list_delFunction · 0.85

Tested by

no test coverage detected