{"thread":{"id":"19214","subject":"[RESEND/PATCH] git config: clarify bool types","startedAt":"2009-05-06T23:07:55Z","lastAt":"2009-05-06T23:07:55Z","messageCount":1,"participants":["Felipe Contreras"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"113147","messageId":"1241651275-12966-1-git-send-email-felipe.contreras@gmail.com","threadId":"19214","inReplyTo":null,"subject":"[RESEND/PATCH] git config: clarify bool types","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2009-05-06T23:07:55Z","receivedAt":"2009-05-06T23:07:55Z","isPatch":true,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"The value is what it is, the --bool and --bool-or-int options don't\nspecify the value type, just how it is interpreted. For example: a value\nof '1' can be interpreted as 'true'.\n\nSigned-off-by: Felipe Contreras <felipe.contreras@gmail.com>\n---\n builtin-config.c |    4 ++--\n 1 files changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin-config.c b/builtin-config.c\nindex a81bc8b..127ae14 100644\n--- a/builtin-config.c\n+++ b/builtin-config.c\n@@ -66,9 +66,9 @@ static struct option builtin_config_options[] = {\n \tOPT_STRING(0, \"get-color\", &get_color_slot, \"slot\", \"find the color configured: [default]\"),\n \tOPT_STRING(0, \"get-colorbool\", &get_colorbool_slot, \"slot\", \"find the color setting: [stdout-is-tty]\"),\n \tOPT_GROUP(\"Type\"),\n-\tOPT_BIT(0, \"bool\", &types, \"value is \\\"true\\\" or \\\"false\\\"\", TYPE_BOOL),\n+\tOPT_BIT(0, \"bool\", &types, \"value is intepreted as bool (\\\"true\\\" or \\\"false\\\")\", TYPE_BOOL),\n \tOPT_BIT(0, \"int\", &types, \"value is decimal number\", TYPE_INT),\n-\tOPT_BIT(0, \"bool-or-int\", &types, \"value is --bool or --int\", TYPE_BOOL_OR_INT),\n+\tOPT_BIT(0, \"bool-or-int\", &types, \"value is interpreted either as bool or int\", TYPE_BOOL_OR_INT),\n \tOPT_GROUP(\"Other\"),\n \tOPT_BOOLEAN('z', \"null\", &end_null, \"terminate values with NUL byte\"),\n \tOPT_END(),\n-- \n1.6.3.rc4.14.g96da.dirty\n"}]}