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

Function set_index_entry

read-cache.c:134–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132static const char *alternate_index_output;
133
134static void set_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
135{
136 if (S_ISSPARSEDIR(ce->ce_mode))
137 istate->sparse_index = INDEX_COLLAPSED;
138
139 istate->cache[nr] = ce;
140 add_name_hash(istate, ce);
141}
142
143static void replace_index_entry(struct index_state *istate, int nr, struct cache_entry *ce)
144{

Callers 3

replace_index_entryFunction · 0.70
add_index_entryFunction · 0.70
load_cache_entry_blockFunction · 0.70

Calls 1

add_name_hashFunction · 0.85

Tested by

no test coverage detected