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

Function cache_remove_path

submodule-config.c:150–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static void cache_remove_path(struct submodule_cache *cache,
151 struct submodule *submodule)
152{
153 unsigned int hash = hash_oid_string(&submodule->gitmodules_oid,
154 submodule->path);
155 struct submodule_entry e;
156 struct submodule_entry *removed;
157 hashmap_entry_init(&e.ent, hash);
158 e.config = submodule;
159 removed = hashmap_remove_entry(&cache->for_path, &e, ent, NULL);
160 free(removed);
161}
162
163static void cache_add(struct submodule_cache *cache,
164 struct submodule *submodule)

Callers 1

parse_configFunction · 0.85

Calls 2

hash_oid_stringFunction · 0.85
hashmap_entry_initFunction · 0.85

Tested by

no test coverage detected