config.c: introduce 'git_config_color' to parse ANSI colors
authorTaylor Blau <me@ttaylorr.com>
Tue, 10 Apr 2018 00:18:28 +0000 (17:18 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Apr 2018 13:51:38 +0000 (22:51 +0900)
commit6d2f9acc0f6c2df2b75ac69aee9077d7ea4eb2b5
tree52f5c32b97126b6597e6da9d03acaef88bebaf69
parenteeaa24b9908878876abf3868d6934143f7ca08ea
config.c: introduce 'git_config_color' to parse ANSI colors

In preparation for adding `--type=color` to the `git-config(1)` builtin,
let's introduce a color parsing utility, `git_config_color` in a similar
fashion to `git_config_<type>`.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c
config.h