Skip to main content

is_git_worktree

Function is_git_worktree 

Source
pub fn is_git_worktree(path: &Path) -> bool
Expand description

Checks if a path is a git worktree (not the main working tree) A worktree has a .git file (not directory) that points to the main repo