mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
4f71522dfb
commit
6c397d0104
@@ -943,7 +943,7 @@ static int get_oid_basic(struct repository *r, const char *str, int len,
|
||||
"\n"
|
||||
"where \"$br\" is somehow empty and a 40-hex ref is created. Please\n"
|
||||
"examine these refs and maybe delete them. Turn this message off by\n"
|
||||
"running \"git config advice.objectNameWarning false\"");
|
||||
"running \"git config set advice.objectNameWarning false\"");
|
||||
struct object_id tmp_oid;
|
||||
char *real_ref = NULL;
|
||||
int refs_found = 0;
|
||||
|
||||
Reference in New Issue
Block a user