Skip to content

Commit

Permalink
branch delete: Drop short-form --force flag (#302)
Browse files Browse the repository at this point in the history
In interactive mode, the command will prompt for force-deletion
regardless.
In non-interactive mode, the long-form isn't much of a burden.
  • Loading branch information
abhinav authored Jul 24, 2024
1 parent 163c5f3 commit 1e2f146
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changes/unreleased/Removed-20240724-120607.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kind: Removed
body: 'branch delete: Drop short form `-f` for the `--force` flag.'
time: 2024-07-24T12:06:07.858133-07:00
2 changes: 1 addition & 1 deletion branch_delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

type branchDeleteCmd struct {
Force bool `short:"f" help:"Force deletion of the branch"`
Force bool `help:"Force deletion of the branch"`
Branch string `arg:"" optional:"" help:"Name of the branch to delete" predictor:"branches"`
}

Expand Down
2 changes: 1 addition & 1 deletion doc/includes/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ Provide a name as an argument to skip the prompt.

**Flags**

* `-f`, `--force`: Force deletion of the branch
* `--force`: Force deletion of the branch

### gs branch fold

Expand Down

0 comments on commit 1e2f146

Please sign in to comment.