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

Function url_is_local_not_ssh

url.c:136–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136int url_is_local_not_ssh(const char *url)
137{
138 const char *colon = strchr(url, ':');
139 const char *slash = strchr(url, '/');
140 return !colon || (slash && slash < colon) ||
141 (has_dos_drive_prefix(url) && is_valid_path(url));
142}
143
144enum url_scheme url_get_scheme(const char *name)
145{

Callers 6

transport_getFunction · 0.85
transport_anonymize_urlFunction · 0.85
parse_connect_urlFunction · 0.85
url_parseFunction · 0.85
relative_urlFunction · 0.85
parse_or_dieFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected