diff options
author | Taylor Blau <me@ttaylorr.com> | 2018-04-10 02:18:28 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-23 15:51:38 +0200 |
commit | 6d2f9acc0f6c2df2b75ac69aee9077d7ea4eb2b5 (patch) | |
tree | 52f5c32b97126b6597e6da9d03acaef88bebaf69 /config.h | |
parent | builtin/config: introduce `--default` (diff) | |
download | git-6d2f9acc0f6c2df2b75ac69aee9077d7ea4eb2b5.tar.xz git-6d2f9acc0f6c2df2b75ac69aee9077d7ea4eb2b5.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | config.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -59,6 +59,7 @@ extern int git_config_bool(const char *, const char *); extern int git_config_string(const char **, const char *, const char *); extern int git_config_pathname(const char **, const char *, const char *); extern int git_config_expiry_date(timestamp_t *, const char *, const char *); +extern int git_config_color(char *, const char *, const char *); extern int git_config_set_in_file_gently(const char *, const char *, const char *); extern void git_config_set_in_file(const char *, const char *, const char *); extern int git_config_set_gently(const char *, const char *); |