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:
authorJunio C Hamano <junkio@cox.net>2006-04-16 14:29:10 +0400
committerJunio C Hamano <junkio@cox.net>2006-04-16 14:35:38 +0400
commitcb8f64b4e3f263c113b7a2f156af74b810e969ff (patch)
tree7bcdc811e98eba8089c25ba60515a5ec347395e5 /log-tree.c
parentd4ed9793fd981ea5a35ebaa8e337446bb29f6d55 (diff)
log/whatchanged/show - log formatting cleanup.
This moves the decision to print the log message, while diff options are in effect, to log-tree. It gives behaviour closer to the traditional one. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 04a68e0f57..7d9f41ede1 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -54,6 +54,9 @@ static const char *generate_header(struct rev_info *opt,
int abbrev = opt->diffopt.abbrev;
const char *msg = commit->buffer;
+ if (opt->use_precomputed_header)
+ return opt->use_precomputed_header;
+
if (!opt->verbose_header)
return sha1_to_hex(commit_sha1);