git

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2026 License: MPL-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRemoteURL

func NormalizeRemoteURL(value string) string

NormalizeRemoteURL normalizes a git remote URL into an explicit transport URL. It converts scp-style SSH remotes (git@host:path) to ssh://git@host/path. If no valid URI scheme is present, it prefixes the URL with https://. URLs with explicit valid schemes are preserved unchanged.

func NormalizeRepositoryURL

func NormalizeRepositoryURL(value string) string

NormalizeRepositoryURL normalizes a git remote URL for blueprint repository metadata. It returns host/path form (for example github.com/org/repo) when host and path can be derived from the input. It strips protocol, user info, leading/trailing slashes, and a trailing .git suffix from the path. If host/path cannot be derived, it falls back to NormalizeRemoteURL.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL