gitweb: add 'raw' blob_plain link in history overview

For people that work with very large plain text files it may be easier if one can bypass viewing the htmlized blob and instead click directly to the raw file (rather then click through 'blob' and then to 'raw'). Signed-off-by: Job Snijders <job@instituut.net> Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Job Snijders committed Aug 22, 2017 at 22:07 UTC 9662897bedc5ca13d68ed806e951cffa28f17ab4
1 file changed +3
gitweb/gitweb.perl
+3
@@ -5965,6 +5965,9 @@ sub git_history_body {
5965 $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
5966
5967 if ($ftype eq 'blob') {
5968 + print " | " .
5969 + $cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw");
5970 +
5971 my $blob_current = $file_hash;
5972 my $blob_parent = git_get_hash_by_path($commit, $file_name);
5973 if (defined $blob_current && defined $blob_parent &&