]> git.ipfire.org Git - thirdparty/git.git/commitdiff
config: fix short help of unset flags
authorRené Scharfe <l.s.r@web.de>
Mon, 24 Nov 2025 21:00:05 +0000 (22:00 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Nov 2025 23:00:46 +0000 (15:00 -0800)
The flags --all and --value of "git config unset" don't make the command
"replace" or "show" anything, they are about selecting what to unset.
Change their help text accordingly.

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/config.c

index f70d6354772259abf4d070e9c45379ee4d274cf3..f1aa4e21ffd51f1ed7bb043971e3ac2cc862bb42 100644 (file)
@@ -992,8 +992,8 @@ static int cmd_config_unset(int argc, const char **argv, const char *prefix,
        struct option opts[] = {
                CONFIG_LOCATION_OPTIONS(location_opts),
                OPT_GROUP(N_("Filter")),
-               OPT_BIT(0, "all", &flags, N_("replace multi-valued config option with new value"), CONFIG_FLAGS_MULTI_REPLACE),
-               OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("show config with values matching the pattern")),
+               OPT_BIT(0, "all", &flags, N_("unset all multi-valued config options"), CONFIG_FLAGS_MULTI_REPLACE),
+               OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("unset multi-valued config options with matching values")),
                OPT_BIT(0, "fixed-value", &flags, N_("use string equality when comparing values to value pattern"), CONFIG_FLAGS_FIXED_VALUE),
                OPT_END(),
        };