From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-4.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by dcvr.yhbt.net (Postfix) with ESMTP id 10E961F667 for ; Tue, 22 Aug 2017 20:09:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752622AbdHVUJU (ORCPT ); Tue, 22 Aug 2017 16:09:20 -0400 Received: from pb-smtp2.pobox.com ([64.147.108.71]:62912 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752466AbdHVUJT (ORCPT ); Tue, 22 Aug 2017 16:09:19 -0400 Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1332EA83CB; Tue, 22 Aug 2017 16:09:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=l1Bpf5+LmSQpBp0sYACvY5keovg=; b=ADsgEY EtHZvSvccpOE/KZ/7aeLicLvxLy9WFPNeU8CX3D6tYjf+Iky10PqYp2VWGdXi3/G o8GmssLTVI4Q5bN7O1ATyDwKffP/tlALYKFO1O8RET2vLs6fPiYoq52tvcadgsjT X7cVfLQJcBq1w7DyOT3DoK0KKeOoexzhdbiRk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=f28b/T4+U8zRPaEqY3/D4i3iLcbKUwpQ cAdbnxb1Mt417SOiM0Ksn6fJlW/+4UrGfRTrmOmUaFsElSPfeDwFY4YWJKtQ9P7f WQC3knU6QjUcjB7cJiHS9cp0nNxLFio1fekxHUL4ZXzr1xmcHKlqnHpPXqRg/bSb Cm3ExKIMwno= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 08190A83CA; Tue, 22 Aug 2017 16:09:19 -0400 (EDT) Received: from pobox.com (unknown [104.132.0.95]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 59B3CA83C9; Tue, 22 Aug 2017 16:09:18 -0400 (EDT) From: Junio C Hamano To: Job Snijders Cc: Giuseppe Bilotta , Git List , =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , yashi@atmark-techno.com, Jakub Narebski Subject: Re: [PATCH] Add 'raw' blob_plain link in history overview References: <20170802185901.GA27243@Vurt.local> <20170820180332.GC39363@Vurt.local> <20170821104425.geetdgi7q2uqycyt@hanna.meerval.net> <20170821141306.wnlfn5a4hmgnj3yn@hanna.meerval.net> <20170822193520.GJ39363@Vurt.local> <20170822200729.GL39363@Vurt.local> Date: Tue, 22 Aug 2017 13:09:17 -0700 In-Reply-To: <20170822200729.GL39363@Vurt.local> (Job Snijders's message of "Tue, 22 Aug 2017 22:07:29 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: C7672494-8775-11E7-AF1D-9D2B0D78B957-77302942!pb-smtp2.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Job Snijders writes: > 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'). > > Reviewed-by: Giuseppe Bilotta > Signed-off-by: Job Snijders > > --- This is much more readable ;-) Will replace. Thanks. > 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 &&