diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2009-01-17 17:29:42 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-17 10:42:03 -0800 |
commit | 07b57e90f7c852c4fe212ab1d91058f27469a74b (patch) | |
tree | 4f9635f2ab1d0c8d70f08e861032069e078578f2 /color.h | |
parent | 3ea95d2b0e6fa63e66de24a5084e217102ab9e8a (diff) | |
download | git-07b57e90f7c852c4fe212ab1d91058f27469a74b.tar.gz |
Add color_fwrite_lines(), a function coloring each line individually
We have to set the color before every line and reset it before every
newline. Add a function color_fwrite_lines() which does that for us.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'color.h')
-rw-r--r-- | color.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -19,5 +19,6 @@ 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, ...); +int color_fwrite_lines(FILE *fp, const char *color, size_t count, const char *buf); #endif /* COLOR_H */ |