Skip to content

feat: add base branch support for worktree creation#197

Merged
chriswritescode-dev merged 1 commit intomainfrom
enhance/worktree-creation
Apr 24, 2026
Merged

feat: add base branch support for worktree creation#197
chriswritescode-dev merged 1 commit intomainfrom
enhance/worktree-creation

Conversation

@chriswritescode-dev
Copy link
Copy Markdown
Owner

Summary

  • Add baseBranch parameter to worktree creation for better branch control
  • Create CreateWorktreeDialog component for dedicated worktree workflow
  • Integrate worktree creation UI in repo list actions and detail page
  • Update BranchesTab to use the new dialog with base branch selection

Changes

  • backend/src/routes/repos.ts - Added baseBranch parameter to route handler
  • backend/src/services/repo.ts - Added CloneRepoOptions interface and baseBranch support
  • frontend/src/api/repos.ts - Added CreateRepoOptions interface
  • frontend/src/components/repo/CreateWorktreeDialog.tsx - New component
  • frontend/src/components/repo/RepoRowActions.tsx - Added worktree action
  • frontend/src/components/repo/BranchesTab.tsx - Updated to use CreateWorktreeDialog
  • frontend/src/pages/RepoDetail.tsx - Added worktree creation button
  • frontend/src/components/repo/AddRepoDialog.tsx - Updated to use new interface

- Add baseBranch parameter to cloneRepo and createWorktreeSafely
- Create CreateWorktreeDialog component for dedicated worktree creation
- Add Create Worktree action to RepoRowActions and RepoDetail page
- Update BranchesTab to use CreateWorktreeDialog
- Allow specifying base branch when creating worktrees
@chriswritescode-dev chriswritescode-dev force-pushed the enhance/worktree-creation branch from a622715 to 8720927 Compare April 24, 2026 18:08
@chriswritescode-dev chriswritescode-dev merged commit 0a2e337 into main Apr 24, 2026
4 checks passed
@chriswritescode-dev chriswritescode-dev deleted the enhance/worktree-creation branch April 28, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant