* Look up a ref store by name. If that ref_store hasn't been * registered yet, return NULL. */
| 2302 | * registered yet, return NULL. |
| 2303 | */ |
| 2304 | static struct ref_store *lookup_ref_store_map(struct strmap *map, |
| 2305 | const char *name) |
| 2306 | { |
| 2307 | struct strmap_entry *entry; |
| 2308 | |
| 2309 | if (!map->map.tablesize) |
| 2310 | /* It's initialized on demand in register_ref_store(). */ |
| 2311 | return NULL; |
| 2312 | |
| 2313 | entry = strmap_get_entry(map, name); |
| 2314 | return entry ? entry->value : NULL; |
| 2315 | } |
| 2316 | |
| 2317 | /* |
| 2318 | * Create, record, and return a ref_store instance for the specified |
no test coverage detected