Re: [PATCH] Add 'raw' blob_plain link in history overview
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 22, 2017, 19:22 UTC
- Message-ID
- <xmqqo9r72yrg.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170821141306.wnlfn5a4hmgnj3yn@hanna.meerval.net>
Job Snijders <job@instituut.net> writes:
Show 6 quoted lines
> Add 'raw' blob_plain link in history overview > > Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> > Signed-off-by: Job Snijders <job@instituut.net> > > ---
Thanks; I somehow thought that your earlier one not just said what it does (twice---that is not needed) but why this change is useful, but that is lost in the patch description?
Show 17 quoted lines
> gitweb/gitweb.perl | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 9208f42ed..959f04b49 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 &&