]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: add 'raw' blob_plain link in history overview
[Gitweb] / gitweb.perl
index d188fafd805bb91bcb6967c345ad24df6b21f6ade3384d0874c3e2179460f5c2..80984e6ac1f9f79e9cb86ee117bdce081d33bc6cd58f1c093a3131436db3357f 100755 (executable)
@@ -5968,6 +5968,9 @@ sub git_history_body {
                      $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
 
                if ($ftype eq 'blob') {
+                       print " | " .
+                             $cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw");
+
                        my $blob_current = $file_hash;
                        my $blob_parent  = git_get_hash_by_path($commit, $file_name);
                        if (defined $blob_current && defined $blob_parent &&
This page took 0.254542 seconds and 4 git commands to generate.