Skip to main content

git_root_for_path

Function git_root_for_path 

Source
pub fn git_root_for_path(path: &Path) -> Result<Option<PathBuf>>
Expand description

Finds the worktree containing a path, or its nearest existing ancestor.