aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-12-05 14:49:59 +0900
committerJunio C Hamano <gitster@pobox.com>2025-12-05 14:49:59 +0900
commit644aed89218e4332270f3caaa734fd670a43646b (patch)
tree776ec1871f26e203c001a246f0c4c676b47f6290
parente74a6e0cb9cce36231cec633c703e887c42d5274 (diff)
parentdf963f0df4756fa751bfbb39e104d004e3f7d60b (diff)
downloadgit-644aed89218e4332270f3caaa734fd670a43646b.tar.gz
Merge branch 'rs/config-set-multi-error-message-fix'
The error message given by "git config set", when the variable being updated has more than one values defined, used old style "git config" syntax with an incorrect option in its hint, both of which have been corrected. * rs/config-set-multi-error-message-fix: config: fix suggestion for failed set of multi-valued option
-rw-r--r--builtin/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/config.c b/builtin/config.c
index e23aef5054..288ebdfdaa 100644
--- a/builtin/config.c
+++ b/builtin/config.c
@@ -1012,7 +1012,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=<pattern>, --append or --all to change %s."), argv[0]);
}
location_options_release(&location_opts);