Skip to content

Commit 18bf67b

Browse files
rscharfegitster
authored andcommitted
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 <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f368df4 commit 18bf67b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -992,8 +992,8 @@ static int cmd_config_unset(int argc, const char **argv, const char *prefix,
992992
struct option opts[] = {
993993
CONFIG_LOCATION_OPTIONS(location_opts),
994994
OPT_GROUP(N_("Filter")),
995-
OPT_BIT(0, "all", &flags, N_("replace multi-valued config option with new value"), CONFIG_FLAGS_MULTI_REPLACE),
996-
OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("show config with values matching the pattern")),
995+
OPT_BIT(0, "all", &flags, N_("unset all multi-valued config options"), CONFIG_FLAGS_MULTI_REPLACE),
996+
OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("unset multi-valued config options with matching values")),
997997
OPT_BIT(0, "fixed-value", &flags, N_("use string equality when comparing values to value pattern"), CONFIG_FLAGS_FIXED_VALUE),
998998
OPT_END(),
999999
};

0 commit comments

Comments
 (0)