projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c238735
)
config: set help text for --bool-or-int
author
Jeff King
<peff@peff.net>
Sat, 7 Mar 2009 17:14:05 +0000
(12:14 -0500)
committer
Junio C Hamano
<gitster@pobox.com>
Sat, 7 Mar 2009 19:32:44 +0000
(11:32 -0800)
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>
builtin-config.c
patch
|
blob
|
history
diff --git
a/builtin-config.c
b/builtin-config.c
index b11a0961bd974467c78274817261f26df2480622..1a3baa1f46f663580a3817c68353a262637560fa 100644
(file)
--- 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(),