Skip to main content

pathspec

Function pathspec 

Source
pub fn pathspec(repo_root: &Path, path: &Path) -> String
Expand description

path made relative to repo_root (via canonicalize, like Python’s Path.resolve()); if it lies outside the work tree, the absolute path is passed through unchanged.