Documentation
¶
Overview ¶
Package git provides helpers for recognizing and normalizing Git repository URLs across the schemes Git supports (scp-like git@, git, ssh, http, and https).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsSupportedRepositoryURL ¶
IsSupportedRepositoryURL reports whether raw looks like a Git repository URL: an scp-like git@ address, or a git, ssh, http, or https URL with a host and a repository path.
func NormalizeForMatch ¶
NormalizeForMatch normalizes a repository URL for equality comparison by trimming whitespace and trailing slashes and dropping a .git suffix.
func RequiresRemoteProbe ¶
RequiresRemoteProbe reports whether raw is an http or https URL that could be either a Git repository or something else, so only asking the remote can settle it. URLs that already end in .git, and non-HTTP schemes, never need a probe.
Types ¶
This section is empty.