X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.h;h=170ff4074d220e7e62264c4c63d1419f4a59d664;hb=9ddf17268c632967abf2dadf9fa2b9d11dcc1867;hp=03ca0647485e8044d4131f2c61c37b4e9408cd2a;hpb=006f424b2d014b8a7c4887b7ddbb57256dd6b8c7;p=git.git diff --git a/color.h b/color.h index 03ca06474..170ff4074 100644 --- a/color.h +++ b/color.h @@ -43,6 +43,9 @@ #define GIT_COLOR_BG_MAGENTA "\033[45m" #define GIT_COLOR_BG_CYAN "\033[46m" +/* A special value meaning "no color selected" */ +#define GIT_COLOR_NIL "NIL" + /* * This variable stores the value of color.ui */ @@ -62,4 +65,6 @@ int color_fprintf(FILE *fp, const char *color, const char *fmt, ...); __attribute__((format (printf, 3, 4))) int color_fprintf_ln(FILE *fp, const char *color, const char *fmt, ...); +int color_is_nil(const char *color); + #endif /* COLOR_H */