Extract the identity name from a remote URL alone (no server config). Tries URL userinfo first (`bob@host`), then the subdomain (`bob.host`). This is the config-free path; [`resolve_identity_name_with_override`] layers the `--identity` override and configured server bindings on top.
(remote_url: &str)
| 522 | /// This is the config-free path; [`resolve_identity_name_with_override`] layers |
| 523 | /// the `--identity` override and configured server bindings on top. |
| 524 | fn resolve_identity_name(remote_url: &str) -> Option<String> { |
| 525 | resolve_identity_from_url(remote_url, &[]) |
| 526 | } |
| 527 | |
| 528 | /// Extract the first subdomain label from a host string. |
| 529 | /// |