Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Print commit message without title in commitdiff only if there is any
author
Jakub Narebski
<jnareb@gmail.com>
Tue, 24 Oct 2006 11:55:33 +0000
(13:55 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 25 Oct 2006 04:36:42 +0000
(21:36 -0700)
Print the rest of commit message (title, i.e. first line of commit
message, is printed separately) only if there is any.
In repository which uses signoffs this shouldn't happen, because
commit message should consist of at least title and signoff.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
62fae51
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 2bc14b2c2ab012ed23a28229262b0092bfd658dc..c82fc6268b9acf925b6faa37fe21b3bf1fd44afa 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-3428,9
+3428,11
@@
sub git_commitdiff {
git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash);
git_print_authorship(\%co);
print "<div class=\"page_body\">\n";
git_print_header_div('commit', esc_html($co{'title'}) . $ref, $hash);
git_print_authorship(\%co);
print "<div class=\"page_body\">\n";
- print "<div class=\"log\">\n";
- git_print_log($co{'comment'}, -final_empty_line=> 1, -remove_title => 1);
- print "</div>\n"; # class="log"
+ if (@{$co{'comment'}} > 1) {
+ print "<div class=\"log\">\n";
+ git_print_log($co{'comment'}, -final_empty_line=> 1, -remove_title => 1);
+ print "</div>\n"; # class="log"
+ }
} elsif ($format eq 'plain') {
my $refs = git_get_references("tags");
} elsif ($format eq 'plain') {
my $refs = git_get_references("tags");