diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2013-05-15 19:00:55 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-05-15 11:02:19 -0700 |
commit | b8612b4da45087d256a0ce339bc65611fb6586f5 (patch) | |
tree | 2eff51957666202546cbfa6efe95ad09fe2b47b9 /builtin/rev-parse.c | |
parent | Git 1.8.2.3 (diff) | |
download | tgif-b8612b4da45087d256a0ce339bc65611fb6586f5.tar.xz |
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 <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/rev-parse.c')
0 files changed, 0 insertions, 0 deletions