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

Function url_get_scheme

url.c:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144enum url_scheme url_get_scheme(const char *name)
145{
146 if (!strcmp(name, "ssh"))
147 return URL_SCHEME_SSH;
148 if (!strcmp(name, "git"))
149 return URL_SCHEME_GIT;
150 if (!strcmp(name, "git+ssh")) /* deprecated - do not use */
151 return URL_SCHEME_SSH;
152 if (!strcmp(name, "ssh+git")) /* deprecated - do not use */
153 return URL_SCHEME_SSH;
154 if (!strcmp(name, "file"))
155 return URL_SCHEME_FILE;
156 return URL_SCHEME_UNKNOWN;
157}

Callers 2

parse_connect_urlFunction · 0.85
url_parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected