MCPcopy Create free account
hub / github.com/git/git / remove_name_hash

Function remove_name_hash

name-hash.c:647–656  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

645}
646
647void remove_name_hash(struct index_state *istate, struct cache_entry *ce)
648{
649 if (!istate->name_hash_initialized || !(ce->ce_flags & CE_HASHED))
650 return;
651 ce->ce_flags &= ~CE_HASHED;
652 hashmap_remove(&istate->name_hash, &ce->ent, ce);
653
654 if (ignore_case)
655 remove_dir_entry(istate, ce);
656}
657
658static int slow_same_name(const char *name1, int len1, const char *name2, int len2)
659{

Callers 3

replace_index_entryFunction · 0.85
remove_index_entry_atFunction · 0.85

Calls 2

hashmap_removeFunction · 0.85
remove_dir_entryFunction · 0.85

Tested by

no test coverage detected