Skip to main content

is_main_worktree

Function is_main_worktree 

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

Whether path is the repo’s main worktree. Worth telling apart because git worktree remove refuses on it, so any advice that would free a branch by removing its worktree is a dead end there.