mirror of
https://github.com/ultraworkers/claw-code-parity.git
synced 2026-04-22 20:56:16 +02:00
4331fdeb6a
Add a top-level `claw branch delete` command that deletes merged local branches while protecting the current branch, the default branch, and branches checked out in linked worktrees. The CLI now validates the new subcommand explicitly and covers the behavior with parser, help, and git integration tests. Constraint: Keep existing dirty workspace changes outside this CLI command untouched Rejected: Reusing the unimplemented /branch slash command | user requested a direct top-level command Confidence: high Scope-risk: narrow Reversibility: clean Directive: Keep branch protection aligned with worktree-aware git behavior before broadening deletion rules Tested: cargo build --workspace; cargo test --workspace Not-tested: Real remote origin/HEAD configurations beyond local main/master fallback