Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: remove unused guess_file_syntax() parameter
author
Ian Kelling
<ian@iankelling.org>
Sat, 24 Sep 2016 22:32:57 +0000
(15:32 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Sun, 25 Sep 2016 23:39:03 +0000
(16:39 -0700)
Signed-off-by: Ian Kelling <ian@iankelling.org>
Acked-by: Jakub Narębski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
6fe1b14
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 33d701d8525fd9334e4a899a807c8f8f0164dcc5..6cb4280e49c8aee60a8496ec7e4d0c7f187c133d 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-3913,7
+3913,7
@@
sub blob_contenttype {
# guess file syntax for syntax highlighting; return undef if no highlighting
# the name of syntax can (in the future) depend on syntax highlighter used
sub guess_file_syntax {
# guess file syntax for syntax highlighting; return undef if no highlighting
# the name of syntax can (in the future) depend on syntax highlighter used
sub guess_file_syntax {
- my ($highlight, $
mimetype, $
file_name) = @_;
+ my ($highlight, $file_name) = @_;
return undef unless ($highlight && defined $file_name);
my $basename = basename($file_name, '.in');
return $highlight_basename{$basename}
return undef unless ($highlight && defined $file_name);
my $basename = basename($file_name, '.in');
return $highlight_basename{$basename}
@@
-7062,7
+7062,7
@@
sub git_blob {
$have_blame &&= ($mimetype =~ m!^text/!);
my $highlight = gitweb_check_feature('highlight');
$have_blame &&= ($mimetype =~ m!^text/!);
my $highlight = gitweb_check_feature('highlight');
- my $syntax = guess_file_syntax($highlight, $
mimetype, $
file_name);
+ my $syntax = guess_file_syntax($highlight, $file_name);
$fd = run_highlighter($fd, $highlight, $syntax)
if $syntax;
$fd = run_highlighter($fd, $highlight, $syntax)
if $syntax;