| 142 | } |
| 143 | |
| 144 | enum 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 | } |
no outgoing calls
no test coverage detected