Description
Add a Branches tool window for comprehensive branch management, providing visibility into all local and remote branches with quick actions.
Features
Branch Display
- List all local branches
- List all remote branches (grouped by remote)
- Current branch indicator
- Upstream tracking status
- Ahead/behind commit counts
- Pull request associations (when available)
Branch Actions
- Create new branch
- Delete branch (with confirmation)
- Rename branch
- Checkout/switch branch
- Set/change upstream tracking
- Push branch to remote
- Pull from upstream
- Merge branch into current
- Rebase onto branch
- Compare branches
Organization
- Sort by: name, date, author
- Group by: local/remote, none
- Filter/search branches
- Show/hide merged branches
- Favorite branches (pinned to top)
- Hide specific branches
Visual Indicators
- Current branch highlighting
- Ahead/behind badges
- PR status icons
- Stale branch indicators
- Protected branch markers
Configuration Options
- Default view (local only, all, favorites)
- Sort preference
- Show/hide remote branches
- Stale branch threshold (days)
- Auto-refresh interval
Related Issues
Note: This tool window provides a rich visual interface for branch management. The same operations are also available via the Git Command Palette (#34) for users who prefer keyboard-driven workflows.
Acceptance Criteria
Description
Add a Branches tool window for comprehensive branch management, providing visibility into all local and remote branches with quick actions.
Features
Branch Display
Branch Actions
Organization
Visual Indicators
Configuration Options
Related Issues
Acceptance Criteria