Description
Add support for Git worktrees, allowing users to work with multiple branches simultaneously in separate working directories without needing to switch branches.
Features
Worktrees Tool Window
- List all worktrees for the repository
- Display for each worktree:
- Path location
- Branch name
- HEAD commit
- Status (clean/dirty)
- Current worktree indicator
Worktree Actions
- Create new worktree
- From existing branch
- From new branch
- From commit/tag
- Open worktree in new Visual Studio window
- Delete worktree (with confirmation)
- Lock/unlock worktree
- Prune stale worktrees
- Copy working changes to worktree
Create Worktree Dialog
- Branch selection (existing or new)
- Path location picker
- Auto-generate path option
- Create from detached HEAD option
Integration Points
- Context menu in Branches view (Create Worktree)
- Quick switch between worktrees
- Status bar worktree indicator
- Solution/project awareness per worktree
Configuration Options
- Default worktree location pattern
- Auto-open in new window toggle
- Confirm before delete
- Show worktree path in views
Related Issues
Note: This tool window provides a rich visual interface for worktree management. The same operations are also available via the Git Command Palette (#34) for users who prefer keyboard-driven workflows.
Acceptance Criteria
Description
Add support for Git worktrees, allowing users to work with multiple branches simultaneously in separate working directories without needing to switch branches.
Features
Worktrees Tool Window
Worktree Actions
Create Worktree Dialog
Integration Points
Configuration Options
Related Issues
Acceptance Criteria