Skip to main content

resolve_git_toplevel

Function resolve_git_toplevel 

Source
pub fn resolve_git_toplevel(cwd: &Path) -> Result<PathBuf, ChangedFilesError>
Expand description

Resolve the canonical git toplevel for cwd.

ยงErrors

Returns an API-owned changed-file error when git cannot inspect the repository.