List for cgit developers and users
 help / color / mirror / Atom feed
* Truncate "commit" page
@ 2016-09-07 11:44 luc.chante
  2016-09-07 12:58 ` john
  0 siblings, 1 reply; 4+ messages in thread
From: luc.chante @ 2016-09-07 11:44 UTC (permalink / raw)


Hi,

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.

Regards,
Luc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160907/0367119b/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Truncate "commit" page
  2016-09-07 11:44 Truncate "commit" page luc.chante
@ 2016-09-07 12:58 ` john
  2016-09-08  7:11   ` luc.chante
  0 siblings, 1 reply; 4+ messages in thread
From: john @ 2016-09-07 12:58 UTC (permalink / raw)


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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Truncate "commit" page
  2016-09-07 12:58 ` john
@ 2016-09-08  7:11   ` luc.chante
  2016-09-08 11:19     ` john
  0 siblings, 1 reply; 4+ messages in thread
From: luc.chante @ 2016-09-08  7:11 UTC (permalink / raw)


Hi,

It's not exactly what I'm looking for, but I will try this.
Thank you.

Le mer. 7 sept. 2016 ? 14:58, John Keeping <john at keeping.me.uk> a ?crit :

> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20160908/8b8bbc50/attachment.html>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Truncate "commit" page
  2016-09-08  7:11   ` luc.chante
@ 2016-09-08 11:19     ` john
  0 siblings, 0 replies; 4+ messages in thread
From: john @ 2016-09-08 11:19 UTC (permalink / raw)


On Thu, Sep 08, 2016 at 07:11:38AM +0000, Luc Chante wrote:
> It's not exactly what I'm looking for, but I will try this.

Yeah, I didn't think it would be exactly what you wanted but it's the
closest we have at the moment.

I think there are two small improvements which would make it much more
usable:

1) Add a link to get from stat-only mode to the full diff
2) Add a configuration variable to use stat-only mode by default

Would that get closer to what you're looking for or is there something
still missing?

> Le mer. 7 sept. 2016 ? 14:58, John Keeping <john at keeping.me.uk> a ?crit :
> 
> > 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.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-09-08 11:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-07 11:44 Truncate "commit" page luc.chante
2016-09-07 12:58 ` john
2016-09-08  7:11   ` luc.chante
2016-09-08 11:19     ` john

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).