parse_git_url

Function parse_git_url 

Source
pub fn parse_git_url(url: &str) -> Result<(String, String)>
Expand description

Parses a Git URL into owner and repository name components.

§Arguments

  • url - The Git repository URL to parse

§Return Value

  • owner is the user, organization, or “local” for local repositories
  • repository_name is the repository name (with .git suffix removed)

§Errors

  • The URL format is not recognized
  • The URL doesn’t contain sufficient path components
  • The URL structure doesn’t match expected patterns