pub fn parse_remote(url: &str) -> Option<SelectedRemote>Expand description
Parse one remote URL. Pure — no IO of any kind.
- HTTP(S) remotes keep their full authority (host and port) and their whole repository path, nested or not; userinfo is dropped so credentials never reach a link.
- Every SSH host is evaluated with OpenSSH; punctuation cannot tell a literal host from an alias, and Match rules can depend on user/port.
- Everything else — local paths,
git://, bracketed IPv6, option-shaped text — is an honestNone, never a guessed base.