gitcfg: Support bool configuration entries with no value
commitd788c6de3e0266c56f90f94b892664323ad1cc2f
authorDavid Aguilar <davvid@gmail.com>
Fri, 4 Nov 2011 02:41:51 +0000 (3 19:41 -0700)
committerDavid Aguilar <davvid@gmail.com>
Fri, 4 Nov 2011 02:41:51 +0000 (3 19:41 -0700)
tree4dd993cb0faa8f583e46198c6baf419320fd655d
parent6c4a8002cee383619eb6d183266e4a3e537e4ee1
gitcfg: Support bool configuration entries with no value

[test]
bool

Is considered 'true' by 'git config --bool test.bool'.
These are rare in practice but we should honor them.

Likewise, make sure that we probably handle:

[test]
value =

Improve the gitcfg handling for bool values.
Add tests to cover these both of these cases.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/gitcfg.py
test/test_cola_gitcfg.py