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

Function add_url_alias

remote.c:100–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static void add_url_alias(struct remote_state *remote_state,
101 struct remote *remote, const char *url)
102{
103 char *alias = alias_url(url, &remote_state->rewrites);
104 add_url(remote, alias ? alias : url);
105 add_pushurl_alias(remote_state, remote, url);
106 free(alias);
107}
108
109struct remotes_hash_key {
110 const char *str;

Callers 3

read_remotes_fileFunction · 0.85
read_branches_fileFunction · 0.85
remotes_remote_get_1Function · 0.85

Calls 3

alias_urlFunction · 0.85
add_urlFunction · 0.85
add_pushurl_aliasFunction · 0.85

Tested by

no test coverage detected