Re: On boolean configuration variables...

From: Anand Kumria <wildfire@progsoc.org>
Date: 2006-06-25 23:33:26
On Sat, 24 Jun 2006 05:28:02 -0700, Junio C Hamano wrote:

> 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Jun 25 23:34:09 2006

This archive was generated by hypermail 2.1.8 : 2006-06-25 23:34:34 EST