| 148 | } |
| 149 | |
| 150 | static 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 | |
| 163 | static void cache_add(struct submodule_cache *cache, |
| 164 | struct submodule *submodule) |
no test coverage detected