Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-07-24 16:41:41 +0400
committerJunio C Hamano <junkio@cox.net>2006-07-24 21:49:11 +0400
commite557667e2d0439451f404794cb308affbc0acfb1 (patch)
treebe38fa003ce94d38f59e90b5f7d40fe5413d88c3 /log-tree.c
parent0d516adab8014bc0d16a0ae7bed7a76e4bd98ec5 (diff)
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>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log-tree.c b/log-tree.c
index b71cf9ba41..3a6c84dab5 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');
}
/*