-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-gitIssues or features related to using GitIssues or features related to using Gitarea-worktreesIssues or features related to worktreesIssues or features related to worktreesverified ✔VerifiedVerified
Milestone
Description
Summary
Improves performance when opening repositories that have multiple worktrees by intelligently sharing Git data across worktrees.
Impact
- Shares cached Git data (tags, remotes, stashes, contributors) across worktrees of the same repository, eliminating redundant Git operations
- Pre-populates branch cache from branch list to avoid redundant
rev-parseoperations - Correctly handles worktree-specific state (like "current" branch flag) while sharing underlying data
- Consolidates caches into a single structure with improved invalidation logic
- Improves worktree naming for detached states by including folder context
- Excludes worktrees from certain repository pickers where inappropriate
Validation
- Test with multiple worktrees from the same repository
- Verify branch detection shows correct current branch per worktree
- Check that tag/remote/stash data is consistent across worktrees
- Confirm cache invalidation propagates correctly
Risk
Medium - Core caching infrastructure changes. Unit tests added for cache behavior.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-gitIssues or features related to using GitIssues or features related to using Gitarea-worktreesIssues or features related to worktreesIssues or features related to worktreesverified ✔VerifiedVerified