Skip to main content

Module paths

Module paths 

Expand description

Path-string utilities. Centralised here so the two HEAD-time walks (facts::ingest::populate_clones_at_head and analyses::clones’s relative-path helper) use the same forward-slash normalisation rule — before this lived in two places, and a Windows-specific bug in clone_coupling‘s same_parent_dir filter (rfind(’/’)) could resurface if one site forgot to normalise.

Functions§

to_posix
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 /.