pub fn normalize_path(file_path: &str, repo_root: Option<&str>) -> StringExpand description
Normalize file_path to a lexical repo-relative path.
- Strips
repo_rootprefix (with trailing/). - Collapses
.and..components lexically (no filesystem access). - Does NOT resolve symlinks — memory keys are lexical paths.