diff options
author | Jeff King <peff@peff.net> | 2009-03-07 18:14:05 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-03-07 20:32:44 +0100 |
commit | ba048224685e661a4cf4736dcffab5fc60cbc70b (patch) | |
tree | 88e2ae99c69c4e28dfea35d5687b1e10a93ed26d /builtin-config.c | |
parent | git config: don't allow --get-color* and variable type (diff) | |
download | git-ba048224685e661a4cf4736dcffab5fc60cbc70b.tar.xz git-ba048224685e661a4cf4736dcffab5fc60cbc70b.zip |
config: set help text for --bool-or-int
The conversion to parse_opt left this as NULL; on glibc
systems, the usage message prints
--bool-or-int (null)
and on other ones, segfaults.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-config.c')
-rw-r--r-- | builtin-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-config.c b/builtin-config.c index b11a0961bd..1a3baa1f46 100644 --- a/builtin-config.c +++ b/builtin-config.c @@ -68,7 +68,7 @@ static struct option builtin_config_options[] = { OPT_GROUP("Type"), OPT_BIT(0, "bool", &types, "value is \"true\" or \"false\"", TYPE_BOOL), OPT_BIT(0, "int", &types, "value is decimal number", TYPE_INT), - OPT_BIT(0, "bool-or-int", &types, NULL, TYPE_BOOL_OR_INT), + OPT_BIT(0, "bool-or-int", &types, "value is --bool or --int", TYPE_BOOL_OR_INT), OPT_GROUP("Other"), OPT_BOOLEAN('z', "null", &end_null, "terminate values with NUL byte"), OPT_END(), |