Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/gitweb-raw-blob-link-in-history' into next
author
Junio C Hamano
<gitster@pobox.com>
Wed, 23 Aug 2017 21:37:59 +0000
(14:37 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 23 Aug 2017 21:37:59 +0000
(14:37 -0700)
"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
gitweb/gitweb.perl
patch
|
blob
|
history
raw
(from parent 1:
0faff38
)
diff --git
a/gitweb/gitweb.perl
b/gitweb/gitweb.perl
index 9208f42ed1753530b8ea46761f8ecc61bbe95976..959f04b494e610258488867aa7de013a3477e5fc 100755
(executable)
--- a/
gitweb/gitweb.perl
+++ b/
gitweb/gitweb.perl
@@
-5967,6
+5967,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 &&