[PATCH 1/3] gitweb: Get rid of git_print_simplified_log
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Oct 24, 2006, 11:52 UTC
- Message-ID
- <200610241352.46422.jnareb@gmail.com>
- In-Reply-To
- <200610241349.54685.jnareb@gmail.com>
Replace calls to git_print_simplified_log with its expansion, i.e. with calling git_print_log with appropriate options.
Remove no longer used git_print_simplified_log subroutine.
Signed-off-by: Jakub Narebski <jnareb@gmail.com> --- gitweb/gitweb.perl | 13 ++----------- 1 files changed, 2 insertions(+), 11 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 0a7d65c..8ac60be 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -1697,15 +1697,6 @@ sub git_print_log ($;%) { } } -sub git_print_simplified_log { - my $log = shift; - my $remove_title = shift; - - git_print_log($log, - -final_empty_line=> 1, - -remove_title => $remove_title); -} - # print tree entry (row of git_tree), but without encompassing <tr> element sub git_print_tree_entry { my ($t, $basedir, $hash_base, $have_blame) = @_; @@ -2995,7 +2986,7 @@ sub git_log { "</div>\n"; print "<div class=\"log_body\">\n"; - git_print_simplified_log($co{'comment'}); + git_print_log($co{'comment'}, -final_empty_line=> 1); print "</div>\n"; } git_footer_html(); @@ -3365,7 +3356,7 @@ sub git_commitdiff { git_print_authorship(\%co); print "<div class=\"page_body\">\n"; print "<div class=\"log\">\n"; - git_print_simplified_log($co{'comment'}, 1); # skip title + git_print_log($co{'comment'}, -final_empty_line=> 1, -remove_title => 1); print "</div>\n"; # class="log" } elsif ($format eq 'plain') {
-- 1.4.2.1