Skip to content

refactor: absorb checkout-branch-from-default into --from-default flag#206

Merged
avihut merged 1 commit intomasterfrom
daft-199/gwtcbm
Feb 15, 2026
Merged

refactor: absorb checkout-branch-from-default into --from-default flag#206
avihut merged 1 commit intomasterfrom
daft-199/gwtcbm

Conversation

@avihut
Copy link
Owner

@avihut avihut commented Feb 14, 2026

Summary

  • Remove worktree-checkout-branch-from-default as a standalone command
  • Absorb its functionality into worktree-checkout-branch via a --from-default (-m) flag
  • Extend the shortcut system with extra_args so shortcuts like gwtcbm carry --from-default
  • Update all registrations, shell wrappers, docs, man pages, tests, and SKILL.md
  • Fix integration test framework to create symlinks for multicall binary (prevents tests from using stale Homebrew-installed binaries)

Fixes #199

Test plan

  • mise run fmt -- clean
  • mise run clippy -- zero warnings
  • mise run test-unit -- all 300+ tests pass
  • mise run test-integration -- 165/184 pass (19 pre-existing carry-related failures unrelated to this change)
  • mise run verify-man -- man pages up-to-date
  • mise run verify-cli-docs -- CLI docs up-to-date
  • Pre-commit hooks pass (prettier, clippy, fmt-check, verify-man, verify-cli-docs, conventional-commit)
  • git worktree-checkout-branch --from-default --help shows the new flag
  • Shortcuts (gwtcbm, gwcobd, gcbdw) route to --from-default via both symlinks and shell wrappers

🤖 Generated with Claude Code

Remove `worktree-checkout-branch-from-default` as a standalone command and
absorb its functionality into `worktree-checkout-branch` via a `--from-default`
(`-m`) flag. Shortcuts (`gwtcbm`, `gwcobd`, `gcbdw`) now route to
`git-worktree-checkout-branch --from-default` through an `extra_args` field
on the shortcut system.

- Add `--from-default` / `-m` flag to checkout_branch.rs
- Extend Shortcut struct with `extra_args` and `resolve_with_args()`
- Update main.rs routing to pass extra args from shortcuts
- Delete standalone checkout_branch_from_default module
- Update shell wrappers, completions, docs, doctor, suggestions
- Fix test framework to create symlinks for multicall binary
- Regenerate man pages and CLI docs

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@avihut avihut modified the milestone: v1.1.0 Feb 14, 2026
@avihut avihut added refactor Code refactoring labels Feb 14, 2026
@avihut avihut self-assigned this Feb 14, 2026
@avihut avihut merged commit 84cce21 into master Feb 15, 2026
4 checks passed
@avihut avihut deleted the daft-199/gwtcbm branch February 15, 2026 04:46
This was referenced Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove worktree-checkout-branch-from-default command

1 participant