Skip to content

Commit

Permalink
Add --force-with-lease and --no-edit to completion file
Browse files Browse the repository at this point in the history
The commands
```
git push --force-with-lease [...]
```
and
```
git commit --amend --no-edit [...]
```
did not auto-complete, now they should

One very minor note is that now git commit --n<tab> will force you to
disambiguate between --no-edit and --no-verify hopefully users will be
able to live with that.

Issue: "none"

Test plan:
Test auto-complete in a terminal
  • Loading branch information
samueltarin committed Aug 19, 2021
1 parent 7f2ae0e commit bd3d67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ _git_commit ()
--*)
__gitcomp "
--all --author= --signoff --verify --no-verify
--edit --amend --include --only --interactive
--edit --no-edit --amend --include --only --interactive
--dry-run --reuse-message= --reedit-message=
--reset-author --file= --message= --template=
--cleanup= --untracked-files --untracked-files=
Expand Down Expand Up @@ -1735,7 +1735,7 @@ _git_push ()
--*)
__gitcomp "
--all --mirror --tags --dry-run --force --verbose
--receive-pack= --repo=
--force-with-lease --receive-pack= --repo=
"
return
;;
Expand Down

0 comments on commit bd3d67e

Please sign in to comment.