From: Johannes Schindelin Date: Mon, 24 Jul 2006 12:41:41 +0000 (+0200) Subject: Always reset the color _before_ printing out the newline X-Git-Tag: v1.4.2-rc2~10 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e557667e2d0439451f404794cb308affbc0acfb1;p=git.git Always reset the color _before_ printing out the newline This patch brings the benefits of part of v1.4.1-rc2~37 to the "commit" colorizing patch. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/log-tree.c b/log-tree.c index b71cf9ba4..3a6c84dab 100644 --- a/log-tree.c +++ b/log-tree.c @@ -139,9 +139,9 @@ void show_log(struct rev_info *opt, const char *sep) printf(" (from %s)", diff_unique_abbrev(parent->object.sha1, abbrev_commit)); - putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n'); printf("%s", diff_get_color(opt->diffopt.color_diff, DIFF_RESET)); + putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n'); } /*