Skip to main content

git_toplevel

Function git_toplevel 

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

Resolve the working-tree root for the current working directory.

ยงErrors

Returns an error if git rev-parse --show-toplevel fails.