Documentation
¶
Overview ¶
Package sourcealiases preserves source-repository URLs in materialized trees without importing a rendering engine or a Git SDK.
Index ¶
- Constants
- func Discover(ctx context.Context, path string) (map[string]struct{}, error)
- func NormalizeGitURL(raw string) (string, bool)
- func Read(path string) []string
- func WriteSourceRepoURLs(path, repoRoot string) error
- func WriteSourceRepoURLsContext(ctx context.Context, path, repoRoot string) error
Constants ¶
View Source
const FileName = ".fmp-source-repo-urls"
Variables ¶
This section is empty.
Functions ¶
func Discover ¶
Discover combines captured aliases and current Git remotes. Callers enforcing local-only reads must validate captured paths and avoid unrestricted Git discovery.
func NormalizeGitURL ¶
NormalizeGitURL matches network repository identities across HTTPS and SSH URL forms. Local paths and file URLs are deliberately not remote aliases.
func WriteSourceRepoURLs ¶
WriteSourceRepoURLs writes remote aliases into a materialized tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.