pub fn git_rev_parse_toplevel(dir: &Path) -> Result<PathBuf>
2026-09-26: The repository root that contains dir, from git itself.
dir
If git cannot run, or dir is not inside a git working tree.