[PATCH 2] gitweb: Replace git_commitdiff_plain by anonymous subroutine
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
gitweb/gitweb.perl | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9367685..c238824 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -234,7 +234,7 @@ my %actions = (
"blob" => \&git_blob,
"blob_plain" => \&git_blob_plain,
"commitdiff" => \&git_commitdiff,
- "commitdiff_plain" => \&git_commitdiff_plain,
+ "commitdiff_plain" => sub { git_commitdiff('plain'); },
"commit" => \&git_commit,
"heads" => \&git_heads,
"history" => \&git_history,
@@ -2820,10 +2820,6 @@ TEXT
}
}
-sub git_commitdiff_plain {
- git_commitdiff('plain');
-}
-
sub git_history {
if (!defined $hash_base) {
$hash_base = git_get_head_hash($project);
--
1.4.1.1