| 137 | } |
| 138 | |
| 139 | static 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 | |
| 150 | static void cache_remove_path(struct submodule_cache *cache, |
| 151 | struct submodule *submodule) |
no test coverage detected