diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-08-26 22:55:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-26 22:55:07 -0700 |
commit | 2adb614902ca4dbf085b880ee5bcfea8c2dafb08 (patch) | |
tree | 5e8d59fa849fac4efee6d0461c576f266d318f38 /gitweb | |
parent | 6b8aa3294e05bd58758ca0a22689d6666d262ea8 (diff) | |
parent | 9662897bedc5ca13d68ed806e951cffa28f17ab4 (diff) | |
download | git-2adb614902ca4dbf085b880ee5bcfea8c2dafb08.tar.gz |
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
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 9208f42ed1..959f04b494 100755 --- 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 && |