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

Function get_delta_base_cache_entry

packfile.c:1463–1477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1461}
1462
1463static struct delta_base_cache_entry *
1464get_delta_base_cache_entry(struct packed_git *p, off_t base_offset)
1465{
1466 struct hashmap_entry entry, *e;
1467 struct delta_base_cache_key key;
1468
1469 if (!delta_base_cache.cmpfn)
1470 return NULL;
1471
1472 hashmap_entry_init(&entry, pack_entry_hash(p, base_offset));
1473 key.p = p;
1474 key.base_offset = base_offset;
1475 e = hashmap_get(&delta_base_cache, &entry, &key);
1476 return e ? container_of(e, struct delta_base_cache_entry, ent) : NULL;
1477}
1478
1479static int delta_base_cache_key_eq(const struct delta_base_cache_key *a,
1480 const struct delta_base_cache_key *b)

Callers 3

in_delta_base_cacheFunction · 0.85
cache_or_unpack_entryFunction · 0.85
unpack_entryFunction · 0.85

Calls 3

hashmap_entry_initFunction · 0.85
pack_entry_hashFunction · 0.85
hashmap_getFunction · 0.85

Tested by

no test coverage detected