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

Function discard_cache_entry

read-cache.c:3518–3527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3516}
3517
3518void discard_cache_entry(struct cache_entry *ce)
3519{
3520 if (ce && should_validate_cache_entries())
3521 memset(ce, 0xCD, cache_entry_size(ce->ce_namelen));
3522
3523 if (ce && ce->mem_pool_allocated)
3524 return;
3525
3526 free(ce);
3527}
3528
3529int should_validate_cache_entries(void)
3530{

Callers 15

replace_entryFunction · 0.85
save_or_free_index_entryFunction · 0.85
unpack_single_entryFunction · 0.85
unpack_sparse_callbackFunction · 0.85
merged_entryFunction · 0.85
build_fake_ancestorFunction · 0.85
add_index_fileFunction · 0.85
replace_index_entryFunction · 0.85
rename_index_entry_atFunction · 0.85

Calls 1

Tested by

no test coverage detected