parse_git_url

Function parse_git_url 

Source
pub fn parse_git_url(input: &str) -> Result<GitSource>
Expand description

Parse various Git URL formats into a normalized GitSource

Supported formats:

  • https://github.com/user/repo
  • https://github.com/user/repo.git
  • github:user/repo
  • github:user/repo@v1.0.0
  • git@github.com:user/repo.git
  • gitlab:user/repo
  • https://gitlab.com/user/repo