pub fn git_root_for_path(path: &Path) -> Result<Option<PathBuf>>
Finds the worktree containing a path, or its nearest existing ancestor.