From: Matthieu Moy Date: Wed, 15 May 2013 17:00:55 +0000 (+0200) Subject: config: refactor management of color.ui's default value X-Git-Tag: v1.8.4-rc0~158^2~1 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b8612b4da45087d256a0ce339bc65611fb6586f5?ds=inline;hp=b8612b4da45087d256a0ce339bc65611fb6586f5 config: refactor management of color.ui's default value 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 get_color_ui_found default to -1, and make it explicit that 0 is the default value when nothing else is found. Signed-off-by: Matthieu Moy Signed-off-by: Junio C Hamano ---