* Associate a ref store with a name. It is a fatal error to call this * function twice for the same name. */
| 2368 | * function twice for the same name. |
| 2369 | */ |
| 2370 | static void register_ref_store_map(struct strmap *map, |
| 2371 | const char *type, |
| 2372 | struct ref_store *refs, |
| 2373 | const char *name) |
| 2374 | { |
| 2375 | if (!map->map.tablesize) |
| 2376 | strmap_init(map); |
| 2377 | if (strmap_put(map, name, refs)) |
| 2378 | BUG("%s ref_store '%s' initialized twice", type, name); |
| 2379 | } |
| 2380 | |
| 2381 | struct ref_store *repo_get_submodule_ref_store(struct repository *repo, |
| 2382 | const char *submodule) |
no test coverage detected