Skip to main content

same_path

Function same_path 

Source
pub fn same_path(a: &Path, b: &Path) -> bool
Expand description

Whether two paths name the same place. Never compare worktree paths with ==: git reports its own resolved form, which differs from anything we build ourselves - /var against /private/var on macOS, forward against back slashes on Windows - so exact equality quietly reports “different”.