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

Function remote_has_url

remote.c:942–950  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940}
941
942int remote_has_url(struct remote *remote, const char *url)
943{
944 int i;
945 for (i = 0; i < remote->url.nr; i++) {
946 if (!strcmp(remote->url.v[i], url))
947 return 1;
948 }
949 return 0;
950}
951
952struct strvec *push_url_of_remote(struct remote *remote)
953{

Callers 2

repo_remote_from_urlFunction · 0.85
cmd_send_packFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected