@matheusbsbs / matheus-bagliano / commits / e557667e2d
Fork 0

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 <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>

Johannes Schindelin committed Jul 24, 2006 at 14:41 UTC e557667e2d0439451f404794cb308affbc0acfb1
1 file changed +1 -1
log-tree.c
+1 -1
@@ -139,9 +139,9 @@ void show_log(struct rev_info *opt, const char *sep)
139 printf(" (from %s)",
140 diff_unique_abbrev(parent->object.sha1,
141 abbrev_commit));
142 - putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n');
142 printf("%s",
143 diff_get_color(opt->diffopt.color_diff, DIFF_RESET));
144 + putchar(opt->commit_format == CMIT_FMT_ONELINE ? ' ' : '\n');
145 }
146
147 /*