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

Function hashmap_put

hashmap.c:280–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280struct hashmap_entry *hashmap_put(struct hashmap *map,
281 struct hashmap_entry *entry)
282{
283 struct hashmap_entry *old = hashmap_remove(map, entry, NULL);
284 hashmap_add(map, entry);
285 return old;
286}
287
288void hashmap_iter_init(struct hashmap *map, struct hashmap_iter *iter)
289{

Callers 4

paths_and_oids_insertFunction · 0.85
cache_put_pathFunction · 0.85
oidmap_putFunction · 0.85

Calls 2

hashmap_removeFunction · 0.85
hashmap_addFunction · 0.85

Tested by

no test coverage detected