X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.h;h=ecda5569a2cccabaf16fcf0aad3bce57dfb3aca4;hb=e38f892d1832977511c4e7c82204c7f94c3a3232;hp=68098006ed057552370ec27359eb776e139bec5e;hpb=53d149c54bdedd4cf490943a5478a7826c2379c9;p=git.git diff --git a/color.h b/color.h index 68098006e..ecda5569a 100644 --- a/color.h +++ b/color.h @@ -4,7 +4,18 @@ /* "\033[1;38;5;2xx;48;5;2xxm\0" is 23 bytes */ #define COLOR_MAXLEN 24 -int git_config_colorbool(const char *var, const char *value); +/* + * This variable stores the value of color.ui + */ +extern int git_use_color_default; + + +/* + * Use this instead of git_default_config if you need the value of color.ui. + */ +int git_color_default_config(const char *var, const char *value); + +int git_config_colorbool(const char *var, const char *value, int stdout_is_tty); void color_parse(const char *var, const char *value, char *dst); int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...);