Skip to main content

to_posix

Function to_posix 

pub fn to_posix(path: &Path) -> String
Expand description

Convert a path to its POSIX (/-separator) string form. Git emits / in its log output unconditionally, so every path stored in changes.path / clones.path must also use / regardless of host platform. On Unix this is a no-op (MAIN_SEPARATOR == '/'); on Windows it rewrites \ to /.