MCPcopy Create free account
hub / github.com/git/git / add_remote_or_group

Function add_remote_or_group

remote.c:2149–2163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2147}
2148
2149int add_remote_or_group(const char *name, struct string_list *list)
2150{
2151 int prev_nr = list->nr;
2152 struct remote_group_data g;
2153 g.name = name; g.list = list;
2154
2155 repo_config(the_repository, get_remote_group, &g);
2156 if (list->nr == prev_nr) {
2157 struct remote *remote = remote_get(name);
2158 if (!remote_is_configured(remote, 0))
2159 return 0;
2160 string_list_append(list, remote->name);
2161 }
2162 return 1;
2163}
2164
2165int resolve_remote_symref(struct ref *ref, struct ref *list)
2166{

Callers 2

cmd_pushFunction · 0.85
cmd_fetchFunction · 0.85

Calls 4

remote_getFunction · 0.85
remote_is_configuredFunction · 0.85
repo_configFunction · 0.70
string_list_appendFunction · 0.70

Tested by

no test coverage detected