From df963f0df4756fa751bfbb39e104d004e3f7d60b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Scharfe?= Date: Mon, 24 Nov 2025 21:33:24 +0100 Subject: [PATCH] config: fix suggestion for failed set of multi-valued option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The command "git config set " fails for an option that has multiple values. List the "git config set" flags that can be used, instead of old-style "git config" actions. Reported-by: Paul Wintz Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- builtin/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/config.c b/builtin/config.c index 59fb113b07..ef1c1a9cf2 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -974,7 +974,7 @@ static int cmd_config_set(int argc, const char **argv, const char *prefix, argv[0], comment, value); if (ret == CONFIG_NOTHING_SET) error(_("cannot overwrite multiple values with a single value\n" - " Use a regexp, --add or --replace-all to change %s."), argv[0]); + " Use --value=, --append or --all to change %s."), argv[0]); } location_options_release(&location_opts);