]> dgit.raspbian.org Git - git-annex.git/commit
When parsing git configs, support all the documented ways to write true and false...
authorJoey Hess <joeyh@joeyh.name>
Mon, 13 Apr 2020 17:45:40 +0000 (13:45 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 13 Apr 2020 18:05:30 +0000 (14:05 -0400)
commit5a62e8132d3f36697fd4c510d91cba4a3d3be338
tree8e11cf6bd84833aeecfaf4bb981e26150fe1fd51
parent9cb69dbb7603cfa1f0f96895d7481ac06aa9def4
When parsing git configs, support all the documented ways to write true and false, including "yes", "on", "1", etc.

This change does impact git-annex config
eg "git annex config --set annex.addunlocked on"
will store "on" and new git-annex will understand that value, while
old git-annex will error:
git-annex: bad annex.addunlocked configuration in git annex config:
Parse failure: near "on"
That seems acceptable.

Not special remote configs that are only documented as =true or =false
however. Having git-annex support other values for those would break
backwards compatability when used with old versions of git-annex. And
older versions ignore invalid special remote configs.. That would not
be a good combination.
Annex/SpecialRemote.hs
Annex/SpecialRemote/Config.hs
CHANGELOG
Git/Config.hs