pub fn repo_root(dir: &Path) -> Result<PathBuf>
The top-level directory of the working tree containing dir.
dir