pub fn repo_name_from_url(url: &str) -> Option<String>Expand description
Extracts the repository name from a Git remote URL.
Handles the common remote forms — scp-style (git@host:org/repo.git),
https (https://host/org/repo.git), ssh (ssh://git@host/org/repo.git),
and bare local paths — by dropping a trailing .git and taking the final
path segment (splitting on both / and :). Returns None for an empty
input or the no_url_set sentinel that CommitSaver::from_repo uses when
no origin remote exists.