List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: Truncate "commit" page
Date: Wed, 7 Sep 2016 13:58:12 +0100	[thread overview]
Message-ID: <20160907125812.GD8854@john.keeping.me.uk> (raw)
In-Reply-To: <CALPT=gy0N_oEmD9TkbOYCkQYCX1oqF=5c=RsGTYonKaGrrN1iw@mail.gmail.com>

On Wed, Sep 07, 2016 at 11:44:30AM +0000, Luc Chante wrote:
> I wonder if there is a way to truncate the content of the "commit" page ?
> 
> I have heavy commits (like adding dependencies when using npm modules).
> Beside the fact that the log is quite unusable, the rendered page can be
> massive and very long to receive and/or to display.

I think you should be able to add "dt=2" to the query parameters in the
URL to enable the "stat only" diff mode, but it looks like we don't have
a way to enable that by default via the config.

The feature was originally added to support links to diffs between Linux
kernel versions (e.g. for the patch from v4.4.18 to v4.4.19) and it
hasn't been extended at all beyond that, but the commit page calls the
same code to generate the diff so the query parameter should work there
as well.


  reply	other threads:[~2016-09-07 12:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-07 11:44 luc.chante
2016-09-07 12:58 ` john [this message]
2016-09-08  7:11   ` luc.chante
2016-09-08 11:19     ` john

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160907125812.GD8854@john.keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).