]> git.ipfire.org Git - thirdparty/git.git/commit
completion: adapt git-config(1) to complete subcommands
authorPatrick Steinhardt <ps@pks.im>
Fri, 17 May 2024 06:13:36 +0000 (08:13 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 17 May 2024 16:26:19 +0000 (09:26 -0700)
commit5dd5007f8936f8d37cf95119e83039bd9237a3c5
tree171b68f35ab95c56c899965cc6355cd1ff012e1e
parent19fe900cfce8096b7645ec9611a0b981f6bbd154
completion: adapt git-config(1) to complete subcommands

With fe3ccc7aab (Merge branch 'ps/config-subcommands', 2024-05-15),
git-config(1) has gained support for subcommands. These subcommands live
next to the old, action-based mode, so that both the old and new way
continue to work.

The manpage for this command has been updated to prominently show the
subcommands, and the action-based modes are marked as deprecated. Update
Bash completion scripts accordingly to advertise subcommands instead of
actions.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash
t/t9902-completion.sh