Skip to main content

find_git_repo_root

Function find_git_repo_root 

Source
pub async fn find_git_repo_root(dir: PathBuf) -> Option<PathBuf>
Expand description

Re-exported worktree and branch-detection APIs. Walks up the directory tree to find a .git directory. Returns the directory containing .git (the repository root) if found, None otherwise.