Skip to content

Exclude worktrees from repository pickers where inappropriate #4931

@eamodio

Description

@eamodio

Summary

Excludes worktrees from repository pickers in commands where selecting a worktree would be confusing or inappropriate.

Impact

  • Fetch command now shows only main repositories, not worktrees
  • Worktree commands (create, delete, copy changes, open) show only main repositories in their picker
  • Reduces confusion when users have multiple worktrees open

Validation

  • Run fetch command with multiple worktrees - should only show main repos
  • Run worktree create/delete/open - picker should show main repos only

Risk

Low - UX improvement for worktree users. No functional change to Git operations.

Metadata

Metadata

Assignees

Labels

area-gitIssues or features related to using Gitarea-worktreesIssues or features related to worktreesverified ✔Verified

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions