| 320 | } |
| 321 | |
| 322 | static int add_remote_url(const char *var, const char *value, |
| 323 | const struct config_context *ctx UNUSED, void *data) |
| 324 | { |
| 325 | struct string_list *remote_urls = data; |
| 326 | const char *remote_name; |
| 327 | size_t remote_name_len; |
| 328 | const char *key; |
| 329 | |
| 330 | if (!parse_config_key(var, "remote", &remote_name, &remote_name_len, |
| 331 | &key) && |
| 332 | remote_name && |
| 333 | !strcmp(key, "url")) |
| 334 | string_list_append(remote_urls, value); |
| 335 | return 0; |
| 336 | } |
| 337 | |
| 338 | static void populate_remote_urls(struct config_include_data *inc) |
| 339 | { |
nothing calls this directly
no test coverage detected