Skip to main content

find_git_root

Function find_git_root 

Source
pub fn find_git_root(start: &Path) -> Option<PathBuf>
Expand description

Walk UP from start to the nearest directory containing a .git entry (file or dir, so worktrees resolve), or None if not inside a repo.