pub fn worktrees(cwd: &Path) -> Vec<WorktreeEntry>Expand description
Every worktree attached to this repo (git worktree list --porcelain -z). Includes the main working copy. Returns an empty
vec when git worktree exits non-zero (older git versions, bare
repos with no linked worktrees, etc.).