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

Re: On boolean configuration variables...

From
AKAnand Kumria <wildfire@progsoc.org>
Date
Jun 25, 2006, 13:33 UTC
Message-ID
<e7m3b6$eoa$1@sea.gmane.org>
In-Reply-To
<7vy7vmviul.fsf@assigned-by-dhcp.cox.net>
On Sat, 24 Jun 2006 05:28:02 -0700, Junio C Hamano wrote:
Show 21 quoted lines
> Boolean configuration variables in $GIT_DIR/config are a bit
> strange.
> 
> 	[bool]
>         	var1
>                 var2 =
>                 var3 = true
>                 var4 = yes
>                 var5 = 1
>                 var6 = 2
>                 var7 = false
>                 var8 = no
>                 var9 = 0
> 
> var1, var3, var5, and var6 are "true"; var2, var7 and var9 are
> "false".  var4 and var8 are syntax errors.
> 
> Currently "git repo-config --bool --get bool.var1" returns
> "false", which is fixed by the attached patch, but I am
> wondering if it is a good idea to allow "yes" and "no" as well.
> 

Allowing 'yes' and 'no' to equal 'true' and 'false' respectively sounds pretty sane and user-friendly.

Why wouldn't you want to do that?
Anand
Previous: Junio C HamanoNext: Johannes Schindelin
Message 2 of 4 in “On boolean configuration variables...”
  1. Junio C HamanoJun 24, 2006
  2. Anand KumriaJun 25, 2006
  3. Johannes SchindelinJun 25, 2006
  4. Anand KumriaJun 25, 2006

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.