pub fn workdir_covering(dir: &Path) -> Option<PathBuf>
The working tree that contains dir, canonicalized.
dir
The ceiling for an upward file search: nothing above a repository root belongs to the project inside it.