Skip to content

Commit 2e29dca

Browse files
pcloudsgitster
authored andcommitted
completion: use __gitcomp_builtin in _git_commit
The new comletable options are: --branch --gpg-sign --long --no-post-rewrite --null --porcelain --status --allow-empty is no longer completable because it's a hidden option since 4741edd (Remove deprecated OPTION_BOOLEAN for parsing arguments - 2013-08-03) Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 4304d3d commit 2e29dca

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

contrib/completion/git-completion.bash

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,16 +1353,7 @@ _git_commit ()
13531353
return
13541354
;;
13551355
--*)
1356-
__gitcomp "
1357-
--all --author= --signoff --verify --no-verify
1358-
--edit --no-edit
1359-
--amend --include --only --interactive
1360-
--dry-run --reuse-message= --reedit-message=
1361-
--reset-author --file= --message= --template=
1362-
--cleanup= --untracked-files --untracked-files=
1363-
--verbose --quiet --fixup= --squash=
1364-
--patch --short --date --allow-empty
1365-
"
1356+
__gitcomp_builtin commit "--no-edit --verify"
13661357
return
13671358
esac
13681359

0 commit comments

Comments
 (0)