[PATCH 1/2] config: refactor management of color.ui's default value

2013-06-10 Thread Matthieu Moy
The meaning of get_colorbool_found and get_diff_color_found is the config value if found, and -1 otherwise, but get_color_ui_found had a slightly different meaning, as it has the value 0 (which corresponds to the default value from the user point of view) when color.ui is unset. Make

[PATCH 1/2] config: refactor management of color.ui's default value

2013-05-15 Thread Matthieu Moy
The meaning of get_colorbool_found and get_diff_color_found is the config value if found, and -1 otherwise, but get_color_ui_found had a slightly different meaning, as it has the value 0 (which corresponds to the default value from the user point of view) when color.ui is unset. Make