Re: On boolean configuration variables...
- From
- Anand 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