Skip to main content

path_for_disk_compare

Function path_for_disk_compare 

Source
pub fn path_for_disk_compare(path: &Path) -> PathBuf
Expand description

Canonicalize a path for on-disk comparison (macOS /private aliasing).

On macOS, /tmp and /private/tmp refer to the same directory; Git stores and accepts both spellings when matching paths against core.worktree.