{"thread":{"id":"46504","subject":"[PATCH] Add 'raw' blob_plain link in history overview","startedAt":"2017-08-02T18:59:09Z","lastAt":"2017-08-22T20:09:23Z","messageCount":12,"participants":["Job Snijders","Giuseppe Bilotta","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"325453","messageId":"20170802185901.GA27243@Vurt.local","threadId":"46504","inReplyTo":null,"subject":"[PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-02T18:59:01Z","receivedAt":"2017-08-02T18:59:09Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"We often work with very large plain text files in our repositories and\nfound it friendlier to the users if we can click directly to the raw\nversion of such files.\n\nThis patch adds a 'raw' blob_plain link in history overview.\n\nSigned-off-by: Job Snijders <job@instituut.net>\n---\n gitweb/gitweb.perl | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 3d4a8ee27..ad79c518e 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -5961,8 +5961,11 @@ sub git_history_body {\n \t\t                          href(action=>\"commit\", hash=>$commit), $ref);\n \t\tprint \"</td>\\n\" .\n \t\t      \"<td class=\\\"link\\\">\" .\n-\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \" .\n-\t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n+\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \";\n+\t\tif ($ftype eq 'blob') {\n+\t\t\tprint $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\") . \" | \";\n+\t\t}\n+\t\tprint $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n \n \t\tif ($ftype eq 'blob') {\n \t\t\tmy $blob_current = $file_hash;\n"},{"id":"326825","messageId":"20170820180332.GC39363@Vurt.local","threadId":"46504","inReplyTo":"20170802185901.GA27243@Vurt.local","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-20T18:03:32Z","receivedAt":"2017-08-20T18:03:41Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"bump? \n\nOn Wed, Aug 02, 2017 at 08:59:01PM +0200, Job Snijders wrote:\n> We often work with very large plain text files in our repositories and\n> found it friendlier to the users if we can click directly to the raw\n> version of such files.\n> \n> This patch adds a 'raw' blob_plain link in history overview.\n> \n> Signed-off-by: Job Snijders <job@instituut.net>\n> ---\n>  gitweb/gitweb.perl | 7 +++++--\n>  1 file changed, 5 insertions(+), 2 deletions(-)\n> \n> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\n> index 3d4a8ee27..ad79c518e 100755\n> --- a/gitweb/gitweb.perl\n> +++ b/gitweb/gitweb.perl\n> @@ -5961,8 +5961,11 @@ sub git_history_body {\n>  \t\t                          href(action=>\"commit\", hash=>$commit), $ref);\n>  \t\tprint \"</td>\\n\" .\n>  \t\t      \"<td class=\\\"link\\\">\" .\n> -\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \" .\n> -\t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n> +\t\t      $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \";\n> +\t\tif ($ftype eq 'blob') {\n> +\t\t\tprint $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\") . \" | \";\n> +\t\t}\n> +\t\tprint $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>  \n>  \t\tif ($ftype eq 'blob') {\n>  \t\t\tmy $blob_current = $file_hash;\n"},{"id":"326860","messageId":"CAOxFTcxOt878uDYj1Y0QMDNe8mNkfX3ZaZayOH3Njp9RWCJo0Q@mail.gmail.com","threadId":"46504","inReplyTo":"20170820180332.GC39363@Vurt.local","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2017-08-21T10:19:38Z","receivedAt":"2017-08-21T10:20:05Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"Hello,\n\nOn Sun, Aug 20, 2017 at 8:03 PM, Job Snijders <job@instituut.net> wrote:\n> bump?\n\n(As a side note, I have also noticed that gitweb patches tend to go\nunreviewed for long)\n\n> On Wed, Aug 02, 2017 at 08:59:01PM +0200, Job Snijders wrote:\n>> We often work with very large plain text files in our repositories and\n>> found it friendlier to the users if we can click directly to the raw\n>> version of such files.\n>>\n>> This patch adds a 'raw' blob_plain link in history overview.\n>>\n>> Signed-off-by: Job Snijders <job@instituut.net>\n>> ---\n>>  gitweb/gitweb.perl | 7 +++++--\n>>  1 file changed, 5 insertions(+), 2 deletions(-)\n>>\n>> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\n>> index 3d4a8ee27..ad79c518e 100755\n>> --- a/gitweb/gitweb.perl\n>> +++ b/gitweb/gitweb.perl\n>> @@ -5961,8 +5961,11 @@ sub git_history_body {\n>>                                         href(action=>\"commit\", hash=>$commit), $ref);\n>>               print \"</td>\\n\" .\n>>                     \"<td class=\\\"link\\\">\" .\n>> -                   $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \" .\n>> -                   $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>> +                   $cgi->a({-href => href(action=>$ftype, hash_base=>$commit, file_name=>$file_name)}, $ftype) . \" | \";\n>> +             if ($ftype eq 'blob') {\n>> +                     print $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\") . \" | \";\n>> +             }\n>> +             print $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>>\n>>               if ($ftype eq 'blob') {\n>>                       my $blob_current = $file_hash;\n\nArguably, the addition of the 'raw' link should be done in the same\nconditional that also adds the 'diff to current' link, before the diff\nto current link.\nThis would be more consistent with the tree view (which puts the raw\nlink last), while still preserving the alignment of the link position\nindependently of the existence of the 'diff to current' link. (Bonus\nextra: smaller patch)\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"},{"id":"326862","messageId":"20170821104425.geetdgi7q2uqycyt@hanna.meerval.net","threadId":"46504","inReplyTo":"CAOxFTcxOt878uDYj1Y0QMDNe8mNkfX3ZaZayOH3Njp9RWCJo0Q@mail.gmail.com","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-21T10:44:25Z","receivedAt":"2017-08-21T10:44:34Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"On Mon, Aug 21, 2017 at 12:19:38PM +0200, Giuseppe Bilotta wrote:\n> >> This patch adds a 'raw' blob_plain link in history overview.\n> \n> Arguably, the addition of the 'raw' link should be done in the same\n> conditional that also adds the 'diff to current' link, before the diff\n> to current link.\n> This would be more consistent with the tree view (which puts the raw\n> link last), while still preserving the alignment of the link position\n> independently of the existence of the 'diff to current' link. (Bonus\n> extra: smaller patch)\n\nThank you for your feedback, good point. Please see below:\n\n---\n\nAdd a 'raw' blob_plain link in history overview\n\nSigned-off-by: Job Snijders <job@instituut.net>\n---\n gitweb/gitweb.perl | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 9208f42ed..c43bbe331 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -5967,6 +5967,9 @@ sub git_history_body {\n \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n \n \t\tif ($ftype eq 'blob') {\n+\t\t\tprint \" | \" .\n+\t\t\t\t$cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n+\n \t\t\tmy $blob_current = $file_hash;\n \t\t\tmy $blob_parent  = git_get_hash_by_path($commit, $file_name);\n \t\t\tif (defined $blob_current && defined $blob_parent &&\n"},{"id":"326878","messageId":"CAOxFTcxaxRjdsd0OSQX9E9ncEnO4XFLoa-0puXm2AByv6dZUow@mail.gmail.com","threadId":"46504","inReplyTo":"20170821104425.geetdgi7q2uqycyt@hanna.meerval.net","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2017-08-21T14:07:01Z","receivedAt":"2017-08-21T14:07:28Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"Hello,\n\nOn Mon, Aug 21, 2017 at 12:44 PM, Job Snijders <job@instituut.net> wrote:\n> On Mon, Aug 21, 2017 at 12:19:38PM +0200, Giuseppe Bilotta wrote:\n> Thank you for your feedback, good point. Please see below:\n\nThis looks fine\n> ---\n>\n> Add a 'raw' blob_plain link in history overview\n>\n> Signed-off-by: Job Snijders <job@instituut.net>\n> ---\n>  gitweb/gitweb.perl | 3 +++\n>  1 file changed, 3 insertions(+)\n>\n> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\n> index 9208f42ed..c43bbe331 100755\n> --- a/gitweb/gitweb.perl\n> +++ b/gitweb/gitweb.perl\n> @@ -5967,6 +5967,9 @@ sub git_history_body {\n>                       $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>\n>                 if ($ftype eq 'blob') {\n> +                       print \" | \" .\n> +                               $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n\nNitpick: gitweb uses tabs for nested indents, but spaces for\nalignment. For this line here, the last tab should be replace with\nspaces (to align the $ with the quotes above.)\n\nWith that fixed, you can add\n\nReviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"},{"id":"326879","messageId":"20170821141306.wnlfn5a4hmgnj3yn@hanna.meerval.net","threadId":"46504","inReplyTo":"CAOxFTcxaxRjdsd0OSQX9E9ncEnO4XFLoa-0puXm2AByv6dZUow@mail.gmail.com","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-21T14:13:06Z","receivedAt":"2017-08-21T14:13:15Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"Add 'raw' blob_plain link in history overview\n\nReviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\nSigned-off-by: Job Snijders <job@instituut.net>\n\n---\n gitweb/gitweb.perl | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 9208f42ed..959f04b49 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -5967,6 +5967,9 @@ sub git_history_body {\n \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n \n \t\tif ($ftype eq 'blob') {\n+\t\t\tprint \" | \" .\n+\t\t\t      $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n+\n \t\t\tmy $blob_current = $file_hash;\n \t\t\tmy $blob_parent  = git_get_hash_by_path($commit, $file_name);\n \t\t\tif (defined $blob_current && defined $blob_parent &&\n"},{"id":"326956","messageId":"xmqqo9r72yrg.fsf@gitster.mtv.corp.google.com","threadId":"46504","inReplyTo":"20170821141306.wnlfn5a4hmgnj3yn@hanna.meerval.net","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-22T19:22:43Z","receivedAt":"2017-08-22T19:23:00Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Job Snijders <job@instituut.net> writes:\n\n> Add 'raw' blob_plain link in history overview\n>\n> Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n> Signed-off-by: Job Snijders <job@instituut.net>\n>\n> ---\n\nThanks; I somehow thought that your earlier one not just said what\nit does (twice---that is not needed) but why this change is useful,\nbut that is lost in the patch description?\n\n>  gitweb/gitweb.perl | 3 +++\n>  1 file changed, 3 insertions(+)\n>\n> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\n> index 9208f42ed..959f04b49 100755\n> --- a/gitweb/gitweb.perl\n> +++ b/gitweb/gitweb.perl\n> @@ -5967,6 +5967,9 @@ sub git_history_body {\n>  \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>  \n>  \t\tif ($ftype eq 'blob') {\n> +\t\t\tprint \" | \" .\n> +\t\t\t      $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n> +\n>  \t\t\tmy $blob_current = $file_hash;\n>  \t\t\tmy $blob_parent  = git_get_hash_by_path($commit, $file_name);\n>  \t\t\tif (defined $blob_current && defined $blob_parent &&\n"},{"id":"326959","messageId":"20170822193520.GJ39363@Vurt.local","threadId":"46504","inReplyTo":"xmqqo9r72yrg.fsf@gitster.mtv.corp.google.com","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-22T19:35:20Z","receivedAt":"2017-08-22T19:35:30Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"On Tue, Aug 22, 2017 at 12:22:43PM -0700, Junio C Hamano wrote:\n> Job Snijders <job@instituut.net> writes:\n> > Add 'raw' blob_plain link in history overview\n> >\n> > Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n> > Signed-off-by: Job Snijders <job@instituut.net>\n> >\n> > ---\n> \n> Thanks; I somehow thought that your earlier one not just said what\n> it does (twice---that is not needed) but why this change is useful,\n> but that is lost in the patch description?\n\nWe often work with very large plain text files in our repositories and\nfound it friendlier to the users if we can click directly to the raw\nversion of such files.\n\nWithout this patch the workflow is to go to the history of a file, click\nthe 'blob' link, and then click the 'raw' link. If the file is large\n(multiple megabytes) - rendering the html enveloppe to the blob can take\nquite some time in the browser DOM rendering. \n\nThis patch adds a 'raw' blob_plain link in history overview so you can\nimmediately click to the 'raw' version, saving time and improving\nworkflow.\n\nHere is a screenshot of a gitweb instance with this patch applied:\n\n    http://instituut.net/~job/screenshots/b0f30e21eb64d5dda75ddabd.png\n\nKind regards,\n\nJob\n"},{"id":"326963","messageId":"CAOxFTczs6Z8qKw_X2USpG0bSKq-XXhfLyg21Nsm196QaxfN7EQ@mail.gmail.com","threadId":"46504","inReplyTo":"20170822193520.GJ39363@Vurt.local","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Giuseppe Bilotta","fromEmail":"giuseppe.bilotta@gmail.com","sentAt":"2017-08-22T20:00:44Z","receivedAt":"2017-08-22T20:01:10Z","isPatch":true,"sender":{"key":"giuseppe.bilotta@gmail.com","avatar":"https://avatars.githubusercontent.com/u/1464?v=4"},"body":"On Tue, Aug 22, 2017 at 9:35 PM, Job Snijders <job@instituut.net> wrote:\n\n> We often work with very large plain text files in our repositories and\n> found it friendlier to the users if we can click directly to the raw\n> version of such files.\n\nIt might be worth it to add this information to the commit message.\n\n-- \nGiuseppe \"Oblomov\" Bilotta\n"},{"id":"326965","messageId":"xmqqvalf1i5v.fsf@gitster.mtv.corp.google.com","threadId":"46504","inReplyTo":"20170822193520.GJ39363@Vurt.local","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-22T20:06:36Z","receivedAt":"2017-08-22T20:06:43Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Job Snijders <job@instituut.net> writes:\n\n> On Tue, Aug 22, 2017 at 12:22:43PM -0700, Junio C Hamano wrote:\n>> Job Snijders <job@instituut.net> writes:\n>> > Add 'raw' blob_plain link in history overview\n>> >\n>> > Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n>> > Signed-off-by: Job Snijders <job@instituut.net>\n>> >\n>> > ---\n>> \n>> Thanks; I somehow thought that your earlier one not just said what\n>> it does (twice---that is not needed) but why this change is useful,\n>> but that is lost in the patch description?\n>\n> We often work with very large plain text files...\n\nYou do not have to explain it to _me_ ;-) I wanted you to explain it\nto our history, instead of me manually tweaking your proposed log\nmessage in your patch with what you sent over e-mail in a follow up\nexplanation like this one.\n\n> ...\n> immediately click to the 'raw' version, saving time and improving\n> workflow.\n\nMost of the above, or at least a condensed version of it, should be\nin the proposed log message.  That is all I was saying.\n\nThanks.\n"},{"id":"326966","messageId":"20170822200729.GL39363@Vurt.local","threadId":"46504","inReplyTo":"CAOxFTczs6Z8qKw_X2USpG0bSKq-XXhfLyg21Nsm196QaxfN7EQ@mail.gmail.com","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Job Snijders","fromEmail":"job@instituut.net","sentAt":"2017-08-22T20:07:29Z","receivedAt":"2017-08-22T20:07:37Z","isPatch":true,"sender":{"key":"job@instituut.net","avatar":"https://avatars.githubusercontent.com/u/153816?v=4"},"body":"For people that work with very large plain text files it may be easier\nif one can bypass viewing the htmlized blob and instead click directly\nto the raw file (rather then click through 'blob' and then to 'raw').\n\nReviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\nSigned-off-by: Job Snijders <job@instituut.net>\n\n---\n gitweb/gitweb.perl | 3 +++\n 1 file changed, 3 insertions(+)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 9208f42ed..959f04b49 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -5967,6 +5967,9 @@ sub git_history_body {\n \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n \n \t\tif ($ftype eq 'blob') {\n+\t\t\tprint \" | \" .\n+\t\t\t      $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n+\n \t\t\tmy $blob_current = $file_hash;\n \t\t\tmy $blob_parent  = git_get_hash_by_path($commit, $file_name);\n \t\t\tif (defined $blob_current && defined $blob_parent &&\n"},{"id":"326968","messageId":"xmqqr2w31i1e.fsf@gitster.mtv.corp.google.com","threadId":"46504","inReplyTo":"20170822200729.GL39363@Vurt.local","subject":"Re: [PATCH] Add 'raw' blob_plain link in history overview","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-08-22T20:09:17Z","receivedAt":"2017-08-22T20:09:23Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Job Snijders <job@instituut.net> writes:\n\n> For people that work with very large plain text files it may be easier\n> if one can bypass viewing the htmlized blob and instead click directly\n> to the raw file (rather then click through 'blob' and then to 'raw').\n>\n> Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>\n> Signed-off-by: Job Snijders <job@instituut.net>\n>\n> ---\n\nThis is much more readable ;-)  Will replace.\n\nThanks.\n\n>  gitweb/gitweb.perl | 3 +++\n>  1 file changed, 3 insertions(+)\n>\n> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\n> index 9208f42ed..959f04b49 100755\n> --- a/gitweb/gitweb.perl\n> +++ b/gitweb/gitweb.perl\n> @@ -5967,6 +5967,9 @@ sub git_history_body {\n>  \t\t      $cgi->a({-href => href(action=>\"commitdiff\", hash=>$commit)}, \"commitdiff\");\n>  \n>  \t\tif ($ftype eq 'blob') {\n> +\t\t\tprint \" | \" .\n> +\t\t\t      $cgi->a({-href => href(action=>\"blob_plain\", hash_base=>$commit, file_name=>$file_name)}, \"raw\");\n> +\n>  \t\t\tmy $blob_current = $file_hash;\n>  \t\t\tmy $blob_parent  = git_get_hash_by_path($commit, $file_name);\n>  \t\t\tif (defined $blob_current && defined $blob_parent &&\n"}]}