mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
f26a001226
Still defaults to stdout, but you can now override wt_status.fp after calling wt_status_prepare(). Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
12 lines
398 B
C
12 lines
398 B
C
#ifndef COLOR_H
|
|
#define COLOR_H
|
|
|
|
/* "\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);
|
|
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, ...);
|
|
|
|
#endif /* COLOR_H */
|