Skip to main content

worktree_branches

Function worktree_branches 

Source
pub fn worktree_branches() -> Result<Vec<(String, PathBuf)>>
Expand description

Branches checked out in linked worktrees other than this one, paired with the directory holding each. Git refuses to switch to, rebase, or delete a branch another worktree holds, so callers check this before those.