diff options
author | Junio C Hamano <junkio@cox.net> | 2006-04-16 03:29:10 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-04-16 03:35:38 -0700 |
commit | cb8f64b4e3f263c113b7a2f156af74b810e969ff (patch) | |
tree | 7bcdc811e98eba8089c25ba60515a5ec347395e5 /log-tree.c | |
parent | d4ed9793fd981ea5a35ebaa8e337446bb29f6d55 (diff) | |
download | git-cb8f64b4e3f263c113b7a2f156af74b810e969ff.tar.gz |
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.c | 3 |
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); |