Skip to content

feat: add configurable merge/rebase arguments#224

Merged
kbwo merged 2 commits into
mainfrom
feature/merge-arg-2026-02-22
Feb 22, 2026
Merged

feat: add configurable merge/rebase arguments#224
kbwo merged 2 commits into
mainfrom
feature/merge-arg-2026-02-22

Conversation

@kbwo
Copy link
Copy Markdown
Owner

@kbwo kbwo commented Feb 22, 2026

Summary

  • Add MergeConfig type with mergeArgs and rebaseArgs fields, configurable at global and project scope
  • Add Configure Merge/Rebase screen under Configuration menu for editing merge/rebase arguments
  • mergeWorktreeEffect now accepts an operation parameter ('merge' | 'rebase') and uses configurable args from MergeConfig (defaults: merge uses --no-ff, rebase uses no extra args)
  • Users can achieve squash merges by setting mergeArgs to ["--squash"] — no dedicated squash option needed

Closes #223

Test plan

  • bun run typecheck passes
  • bun run lint passes
  • bun run test passes (1279 tests)
  • Unit tests: 5 new mock-based tests for mergeWorktreeEffect with custom MergeConfig
  • Integration tests: 7 new real-git tests (worktreeService.merge.test.ts) covering default args, custom mergeArgs/rebaseArgs, squash via config, conflict handling
  • Manual: run bun run start, navigate to Configuration → Configure Merge/Rebase, edit args, then perform merge/rebase operations

🤖 Generated with Claude Code

kbwo and others added 2 commits February 22, 2026 23:52
Add MergeConfig to allow users to customize arguments passed to git
merge and git rebase operations. Users can configure args globally or
per-project via the new Configuration > Configure Merge/Rebase screen.
For example, setting mergeArgs to ['--squash'] enables squash merges.

Closes #223

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Test merge/rebase operations with configurable args against actual
git repositories, covering default args, custom MergeConfig, squash
via mergeArgs, rebase with custom flags, and error cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kbwo kbwo merged commit 1e4f3cf into main Feb 22, 2026
1 check passed
@kbwo kbwo deleted the feature/merge-arg-2026-02-22 branch February 22, 2026 15:37
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.

Request: Add Squash Merge option when merging worktrees

1 participant