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

Function cache_put_path

submodule-config.c:139–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139static void cache_put_path(struct submodule_cache *cache,
140 struct submodule *submodule)
141{
142 unsigned int hash = hash_oid_string(&submodule->gitmodules_oid,
143 submodule->path);
144 struct submodule_entry *e = xmalloc(sizeof(*e));
145 hashmap_entry_init(&e->ent, hash);
146 e->config = submodule;
147 hashmap_put(&cache->for_path, &e->ent);
148}
149
150static void cache_remove_path(struct submodule_cache *cache,
151 struct submodule *submodule)

Callers 1

parse_configFunction · 0.85

Calls 4

hash_oid_stringFunction · 0.85
hashmap_entry_initFunction · 0.85
hashmap_putFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected