pub fn worktree_map(repo: &Path) -> Result<HashMap<String, PathBuf>>Expand description
Maps each checked-out branch to the absolute path of its worktree.
Bare and detached entries are dropped (no branch to key on). git proscribes the same branch in two worktrees, so the map is 1:1.
§Errors
Returns Err if git worktree list fails.