pub fn is_git_url(url: &str) -> boolExpand description
Determines if a given URL is a Git repository URL (including file:// URLs).
Git repository URLs need to be cloned/fetched, unlike local filesystem paths.
ยงExamples
use agpm_cli::utils::is_git_url;
assert!(is_git_url("https://github.com/user/repo.git"));
assert!(is_git_url("git@github.com:user/repo.git"));
assert!(is_git_url("file:///path/to/repo.git"));
assert!(is_git_url("ssh://git@server.com/repo.git"));
assert!(!is_git_url("/absolute/path"));
assert!(!is_git_url("./relative/path"));