X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=color.h;h=170ff4074d220e7e62264c4c63d1419f4a59d664;hb=c27e559da5b26faa31858fe6dc5492d4f605b867;hp=03ca0647485e8044d4131f2c61c37b4e9408cd2a;hpb=0a4139b5f283ef5e817afaafd9e7e2a149220cc4;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 */