Skip to content

Reject conflicting prune modes - #1778

Merged
codeforester merged 1 commit into
mainfrom
enhancement/1774-20260727-prune-flags
Jul 28, 2026
Merged

Reject conflicting prune modes#1778
codeforester merged 1 commit into
mainfrom
enhancement/1774-20260727-prune-flags

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

Reject conflicting --dry-run and --yes options before prune inspection or mutation. Both branch and worktree pruning now use the same error and help guidance.

Issue

Fixes #1774

Validation

  • BASE_BASH_LIBS_DIR=/Users/rameshhp/work/base-bash-libs/lib/bash bats cli/bash/commands/basectl/tests/gh-branch-worktree.bats (29 passed)
  • git diff --check

Demo Impact

None.

Notes

Either option alone preserves the existing behavior, including dry-run by default.

@codeforester
codeforester requested a review from a team as a code owner July 28, 2026 00:42
@codeforester
codeforester merged commit b9cb911 into main Jul 28, 2026
28 checks passed
@codeforester
codeforester deleted the enhancement/1774-20260727-prune-flags branch July 28, 2026 00:56
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.

Make prune execution flags unambiguous

1 participant