Skip to content

Commit 9662897

Browse files
jobgitster
authored andcommitted
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 <[email protected]> Reviewed-by: Giuseppe Bilotta <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4d7268b commit 9662897

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
@@ -5965,6 +5965,9 @@ sub git_history_body {
59655965
$cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
59665966

59675967
if ($ftype eq 'blob') {
5968+
print " | " .
5969+
$cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw");
5970+
59685971
my $blob_current = $file_hash;
59695972
my $blob_parent = git_get_hash_by_path($commit, $file_name);
59705973
if (defined $blob_current && defined $blob_parent &&

0 commit comments

Comments
 (0)