Skip to content

Commit e74a6e0

Browse files
committed
Merge branch 'rs/config-unset-opthelp-fix'
The option help text given by "git config unset -h" described the "--all" option to "replace", not "unset", multiple variables, which has been corrected. * rs/config-unset-opthelp-fix: config: fix short help of unset flags
2 parents 9d442ce + 18bf67b commit e74a6e0

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
@@ -1030,8 +1030,8 @@ static int cmd_config_unset(int argc, const char **argv, const char *prefix,
10301030
struct option opts[] = {
10311031
CONFIG_LOCATION_OPTIONS(location_opts),
10321032
OPT_GROUP(N_("Filter")),
1033-
OPT_BIT(0, "all", &flags, N_("replace multi-valued config option with new value"), CONFIG_FLAGS_MULTI_REPLACE),
1034-
OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("show config with values matching the pattern")),
1033+
OPT_BIT(0, "all", &flags, N_("unset all multi-valued config options"), CONFIG_FLAGS_MULTI_REPLACE),
1034+
OPT_STRING(0, "value", &value_pattern, N_("pattern"), N_("unset multi-valued config options with matching values")),
10351035
OPT_BIT(0, "fixed-value", &flags, N_("use string equality when comparing values to value pattern"), CONFIG_FLAGS_FIXED_VALUE),
10361036
OPT_END(),
10371037
};

0 commit comments

Comments
 (0)