Skip to content

Commit 2adb614

Browse files
committed
Merge branch 'js/gitweb-raw-blob-link-in-history'
"gitweb" shows a link to visit the 'raw' contents of blbos in the history overview page. * js/gitweb-raw-blob-link-in-history: gitweb: add 'raw' blob_plain link in history overview
2 parents 6b8aa32 + 9662897 commit 2adb614

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gitweb/gitweb.perl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5967,6 +5967,9 @@ sub git_history_body {
59675967
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
59685968

59695969
if ($ftype eq 'blob') {
5970+
print " | " .
5971+
$cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw");
5972+
59705973
my $blob_current = $file_hash;
59715974
my $blob_parent = git_get_hash_by_path($commit, $file_name);
59725975
if (defined $blob_current && defined $blob_parent &&

0 commit comments

Comments
 (0)