refactor: absorb checkout-branch-from-default into --from-default flag#206
Merged
refactor: absorb checkout-branch-from-default into --from-default flag#206
Conversation
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>
This was referenced Feb 15, 2026
Merged
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
worktree-checkout-branch-from-defaultas a standalone commandworktree-checkout-branchvia a--from-default(-m) flagextra_argsso shortcuts likegwtcbmcarry--from-defaultFixes #199
Test plan
mise run fmt-- cleanmise run clippy-- zero warningsmise run test-unit-- all 300+ tests passmise run test-integration-- 165/184 pass (19 pre-existing carry-related failures unrelated to this change)mise run verify-man-- man pages up-to-datemise run verify-cli-docs-- CLI docs up-to-dategit worktree-checkout-branch --from-default --helpshows the new flaggwtcbm,gwcobd,gcbdw) route to--from-defaultvia both symlinks and shell wrappers🤖 Generated with Claude Code