Skip to content

feat(views): add Branches management tool window #22

@CalvinAllen

Description

@CalvinAllen

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

  • All local and remote branches displayed
  • Branch actions execute correctly
  • Ahead/behind counts are accurate
  • PR associations shown when available
  • Search and filter work correctly
  • Favorite/hide functionality works

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestphase-2Phase 2: File History & Commit Detailspriority: mediumMedium priority item

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions