MCPcopy Index your code
hub / github.com/git/git / add_remote_url

Function add_remote_url

config.c:322–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322static 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
338static void populate_remote_urls(struct config_include_data *inc)
339{

Callers

nothing calls this directly

Calls 2

parse_config_keyFunction · 0.85
string_list_appendFunction · 0.70

Tested by

no test coverage detected