Skip to main content

normalize_path_copy

Function normalize_path_copy 

Source
pub fn normalize_path_copy(src: &str) -> Result<String, GitPathError>
Expand description

Purely textual path normalization matching Git’s normalize_path_copy. Returns GitPathError::EscapesRoot when .. would escape above the root (Git returns -1).