]> git.ipfire.org Git - thirdparty/git.git/commit
advice: suggest using subcommand "git config set"
authorBence Ferdinandy <bence@ferdinandy.com>
Thu, 5 Dec 2024 12:21:58 +0000 (13:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Dec 2024 02:24:21 +0000 (11:24 +0900)
commit6c397d01046251b4d26f2aded07a695ada196962
treef8caddcf8416a82ebcf48c806bfca0a5caf752e3
parent4f71522dfb7fc53eff569023303980c66114b1bc
advice: suggest using subcommand "git config set"

The advice message currently suggests using "git config advice..." to
disable advice messages, but since

00bbdde141 (builtin/config: introduce "set" subcommand, 2024-05-06)

we have the "set" subcommand for config. Since using the subcommand is
more in-line with the modern interface, any advice should be promoting
its usage. Change the disable advice message to use the subcommand
instead. Change all uses of "git config advice" in the tests to use the
subcommand.

Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
19 files changed:
advice.c
commit.c
hook.c
object-name.c
t/t0018-advice.sh
t/t3200-branch.sh
t/t3404-rebase-interactive.sh
t/t3501-revert-cherry-pick.sh
t/t3507-cherry-pick-conflict.sh
t/t3510-cherry-pick-sequence.sh
t/t3511-cherry-pick-x.sh
t/t3602-rm-sparse-checkout.sh
t/t3700-add.sh
t/t3705-add-sparse-checkout.sh
t/t7002-mv-sparse-checkout.sh
t/t7004-tag.sh
t/t7201-co.sh
t/t7400-submodule-basic.sh
t/t7508-status.sh