From: René Scharfe Date: Mon, 24 Nov 2025 21:00:05 +0000 (+0100) Subject: config: fix short help of unset flags X-Git-Tag: v2.53.0-rc0~79^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18bf67b7537f8ff0cd772847aa03f9cc319b1346;p=thirdparty%2Fgit.git config: fix short help of unset flags 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 Signed-off-by: Junio C Hamano --- diff --git a/builtin/config.c b/builtin/config.c index f70d635477..f1aa4e21ff 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -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(), };