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

Function add_dir_entry

name-hash.c:95–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95static void add_dir_entry(struct index_state *istate, struct cache_entry *ce)
96{
97 /* Add reference to the directory entry (and parents if 0). */
98 struct dir_entry *dir = hash_dir_entry(istate, ce, ce_namelen(ce));
99 while (dir && !(dir->nr++))
100 dir = dir->parent;
101}
102
103static void remove_dir_entry(struct index_state *istate, struct cache_entry *ce)
104{

Callers 1

hash_index_entryFunction · 0.85

Calls 1

hash_dir_entryFunction · 0.85

Tested by

no test coverage detected