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

Function populate_remote_urls

config.c:338–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static void populate_remote_urls(struct config_include_data *inc)
339{
340 struct config_options opts;
341
342 opts = *inc->opts;
343 opts.unconditional_remote_url = 1;
344
345 inc->remote_urls = xmalloc(sizeof(*inc->remote_urls));
346 string_list_init_dup(inc->remote_urls);
347 config_with_options(add_remote_url, inc->remote_urls,
348 inc->config_source, inc->repo, &opts);
349}
350
351static int forbid_remote_url(const char *var, const char *value UNUSED,
352 const struct config_context *ctx UNUSED,

Callers 1

include_by_remote_urlFunction · 0.85

Calls 3

string_list_init_dupFunction · 0.85
config_with_optionsFunction · 0.85
xmallocFunction · 0.70

Tested by

no test coverage detected