Repository navigation
Conversation
Split a fat branch with many commits into a clean stack of focused branches. Supports interactive TUI with bucket assignment and non-interactive --plan file mode. Cherry-picks commits one-at-a-time with full conflict handling (--continue/--abort), crash-safe state persistence, and automatic descendant rebasing for mid-stack splits. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
gw splitcommand that decomposes a fat branch into a clean stack of focused branches--plan <file>mode for scripting--continue/--abort)SplitStateinstate.tomlFiles changed
src/commands/split.rs— Execution engine: plan parsing, cherry-pick state machine, continue/abort, finalizesrc/commands/split_tui.rs— Interactive TUI with bucket assignment, viewport scrolling, text input modesrc/cli.rs—Commands::Splitwith--plan,--base,--name,--yes,--continue,--abortsrc/main.rs— Split dispatch + polymorphic state guard (ActiveState)src/state.rs—SplitState,SplitBucket,ActiveStateenum,load_active_state()src/context.rs—active_state(),save_split_state(),remove_state()src/git.rs—cherry_pick(),cherry_pick_continue/abort(),delete_branch(),log_commits()src/validate.rs—validate_sha()tests/split_test.rs— 13 integration testsREADME.md,CLAUDE.md,SKILL.md— Documentation updatesTest plan
🤖 Generated with Claude Code