git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] git config: clarify bool types

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Oct 11, 2009, 20:46 UTC
Message-ID
<1255293973-17444-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1255293973-17444-2-git-send-email-felipe.contreras@gmail.com>

The value is what it is, the --bool and --bool-or-int options don't specify the value type, just how it is interpreted. For example: a value of '1' can be interpreted as 'true'.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 builtin-config.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin-config.c b/builtin-config.c
index a2d656e..29d7b75 100644
--- a/builtin-config.c
+++ b/builtin-config.c
@@ -66,9 +66,9 @@ static struct option builtin_config_options[] = {
 	OPT_STRING(0, "get-color", &get_color_slot, "slot", "find the color configured: [default]"),
 	OPT_STRING(0, "get-colorbool", &get_colorbool_slot, "slot", "find the color setting: [stdout-is-tty]"),
 	OPT_GROUP("Type"),
-	OPT_BIT(0, "bool", &types, "value is \"true\" or \"false\"", TYPE_BOOL),
+	OPT_BIT(0, "bool", &types, "value is intepreted as bool (\"true\" or \"false\")", TYPE_BOOL),
 	OPT_BIT(0, "int", &types, "value is decimal number", TYPE_INT),
-	OPT_BIT(0, "bool-or-int", &types, "value is --bool or --int", TYPE_BOOL_OR_INT),
+	OPT_BIT(0, "bool-or-int", &types, "value is interpreted either as bool or int", TYPE_BOOL_OR_INT),
 	OPT_GROUP("Other"),
 	OPT_BOOLEAN('z', "null", &end_null, "terminate values with NUL byte"),
 	OPT_END(),
-- 
1.6.5.4.g31fc3
Previous: Felipe ContrerasNext: Felipe Contreras
Message 3 of 15 in “Trivial patches”
  1. 0/3 Trivial patchesFelipe Contreras, Oct 11, 2009
  2. 1/3 Fix a bunch of pointer declarations (codestyle)Felipe Contreras, Oct 11, 2009
  3. 2/3 git config: clarify bool typesFelipe Contreras, Oct 11, 2009
  4. 3/3 user-manual: use 'fast-forward'Felipe Contreras, Oct 11, 2009
  5. Junio C HamanoOct 12, 2009
  6. Felipe ContrerasOct 12, 2009
  7. Michael J GruberOct 12, 2009
  8. Junio C HamanoOct 12, 2009
  9. Felipe ContrerasOct 12, 2009
  10. Michael J GruberOct 12, 2009
  11. Felipe ContrerasOct 12, 2009
  12. Michael J GruberOct 13, 2009
  13. Felipe ContrerasOct 13, 2009
  14. Thiago FarinaOct 11, 2009
  15. Felipe ContrerasOct 11, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.