Skip to main content

Module git

Module git 

Source
Expand description

Git URL parsing and manipulation utilities.

Provides functionality to parse, validate, and manipulate Git repository URLs in various formats (HTTPS, SSH, git://, etc.).

§Examples

use rpi_tools::utils::git::GitUrl;

let url = GitUrl::parse("https://github.com/user/repo.git").unwrap();
assert_eq!(url.host(), "github.com");
assert_eq!(url.owner(), "user");
assert_eq!(url.repo(), "repo");

Structs§

GitUrl
Represents a parsed Git URL with its components.

Enums§

GitUrlError
Errors that can occur when parsing a Git URL.