Skip to main content

permalink

Function permalink 

Source
pub fn permalink(repo: &Repo, loc: &SourceLocation) -> Option<String>
Expand description

Build the immutable permalink for a file at 1-based lines. Branch is always resolved to a commit SHA (0001 pillar 3.3). The URL for a revisioned location (0014): pinned to the location’s revision — a commit surface links that commit, not HEAD.