Skip to main content

Module permalink

Module permalink 

Source
Expand description

Permalink remote normalization and URL construction (0001 pillar 3.3, 0033 finding 1). Everything here is pure — no filesystem, no environment, no process. SSH aliases come back to the caller as unresolved data; OpenSSH effective-configuration evaluation lives in crate::ssh and is owned IO-worker work, never this module.

Structs§

AliasRemote
An SSH endpoint whose effective configuration has not been evaluated. Any host spelling can be remapped by OpenSSH, including dotted aliases.
WebRemote
A remote whose web identity is fully known: permalink construction from here is pure.

Enums§

SelectedRemote
The remote a permalink will point at.

Functions§

parse_remote
Parse one remote URL. Pure — no IO of any kind.
permalink
The immutable permalink (0001 pillar 3.3): revision pinned to a commit SHA the caller already resolved, repository and file path segments percent-encoded from native bytes, GitHub/GitLab #L line anchors.
pick_remote
Pick the permalink remote: upstream > origin > first remaining (0001 pillar 3.3). The first remote that parses wins; a failure of the winner surfaces at the caller — never a silent substitute URL.