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: 0

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