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

Function pack_entry_hash

packfile.c:1454–1461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1452};
1453
1454static unsigned int pack_entry_hash(struct packed_git *p, off_t base_offset)
1455{
1456 unsigned int hash;
1457
1458 hash = (unsigned int)(intptr_t)p + (unsigned int)base_offset;
1459 hash += (hash >> 8) + (hash >> 16);
1460 return hash;
1461}
1462
1463static struct delta_base_cache_entry *
1464get_delta_base_cache_entry(struct packed_git *p, off_t base_offset)

Callers 2

add_delta_base_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected