List for cgit developers and users
 help / color / mirror / Atom feed
* Idle column
@ 2013-07-19 11:29 list
  2013-07-19 11:44 ` john
  0 siblings, 1 reply; 6+ messages in thread
From: list @ 2013-07-19 11:29 UTC (permalink / raw)


Hello everybody,

cgit is great and I enjoy it a lot. However it has one drawback compared to
gitweb: The idle column in repository listing shows the age of a
(configurable) file from the repository. I think that is stupid behavior as I
have a lot of "0 min." entries if I run "git gc" on my repositories or the
date since last push or pull otherwise.

In contrast to that gitweb shows the time since the last commit. I would
prefer to have that in cgit as well. Any chance to get that? Or is there any
good reason why the idle column is as is?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130719/9b6bfd51/attachment.asc>


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

* Idle column
  2013-07-19 11:29 Idle column list
@ 2013-07-19 11:44 ` john
  2013-07-19 13:55   ` list
  2013-07-22 13:13   ` mackyle
  0 siblings, 2 replies; 6+ messages in thread
From: john @ 2013-07-19 11:44 UTC (permalink / raw)


On Fri, Jul 19, 2013 at 01:29:52PM +0200, Christian Hesse wrote:
> cgit is great and I enjoy it a lot. However it has one drawback compared to
> gitweb: The idle column in repository listing shows the age of a
> (configurable) file from the repository. I think that is stupid behavior as I
> have a lot of "0 min." entries if I run "git gc" on my repositories or the
> date since last push or pull otherwise.
> 
> In contrast to that gitweb shows the time since the last commit. I would
> prefer to have that in cgit as well. Any chance to get that? Or is there any
> good reason why the idle column is as is?

This was discussed a couple of months ago [1].  You can use a hook and
agefile to make CGit behave like GitWeb as described in that message.

[1] http://article.gmane.org/gmane.comp.version-control.cgit/1059


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

* Idle column
  2013-07-19 11:44 ` john
@ 2013-07-19 13:55   ` list
  2013-07-22  7:15     ` list
  2013-07-22 13:13   ` mackyle
  1 sibling, 1 reply; 6+ messages in thread
From: list @ 2013-07-19 13:55 UTC (permalink / raw)


John Keeping <john at keeping.me.uk> on Fri, 2013/07/19 12:44:
> On Fri, Jul 19, 2013 at 01:29:52PM +0200, Christian Hesse wrote:
> > cgit is great and I enjoy it a lot. However it has one drawback compared
> > to gitweb: The idle column in repository listing shows the age of a
> > (configurable) file from the repository. I think that is stupid behavior
> > as I have a lot of "0 min." entries if I run "git gc" on my repositories
> > or the date since last push or pull otherwise.
> > 
> > In contrast to that gitweb shows the time since the last commit. I would
> > prefer to have that in cgit as well. Any chance to get that? Or is there
> > any good reason why the idle column is as is?
> 
> This was discussed a couple of months ago [1].  You can use a hook and
> agefile to make CGit behave like GitWeb as described in that message.
> 
> [1] http://article.gmane.org/gmane.comp.version-control.cgit/1059

Ah, great! Looks like I misunderstood the agefile option.
Perhaps someone should add a note to the man page, probably I am not the only
one suffering this problem.
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130719/5eaa13e8/attachment.asc>


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

* Idle column
  2013-07-19 13:55   ` list
@ 2013-07-22  7:15     ` list
  2013-08-12 18:48       ` Jason
  0 siblings, 1 reply; 6+ messages in thread
From: list @ 2013-07-22  7:15 UTC (permalink / raw)


Christian Hesse <list at eworm.de> on Fri, 2013/07/19 15:55:
> John Keeping <john at keeping.me.uk> on Fri, 2013/07/19 12:44:
> > On Fri, Jul 19, 2013 at 01:29:52PM +0200, Christian Hesse wrote:
> > > cgit is great and I enjoy it a lot. However it has one drawback compared
> > > to gitweb: The idle column in repository listing shows the age of a
> > > (configurable) file from the repository. I think that is stupid behavior
> > > as I have a lot of "0 min." entries if I run "git gc" on my repositories
> > > or the date since last push or pull otherwise.
> > > 
> > > In contrast to that gitweb shows the time since the last commit. I would
> > > prefer to have that in cgit as well. Any chance to get that? Or is there
> > > any good reason why the idle column is as is?
> > 
> > This was discussed a couple of months ago [1].  You can use a hook and
> > agefile to make CGit behave like GitWeb as described in that message.
> > 
> > [1] http://article.gmane.org/gmane.comp.version-control.cgit/1059
> 
> Ah, great! Looks like I misunderstood the agefile option.
> Perhaps someone should add a note to the man page, probably I am not the
> only one suffering this problem.

How about something like this?
-- 
main(a){char*c=/*    Schoene Gruesse                         */"B?IJj;MEH"
"CX:;",b;for(a/*    Chris           get my mail address:    */=0;b=c[a++];)
putchar(b-1/(/*               gcc -o sig sig.c && ./sig    */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-add-a-note-about-generating-agefile-in-hook.patch
Type: text/x-patch
Size: 904 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130722/2d2fefad/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130722/2d2fefad/attachment.asc>


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

* Idle column
  2013-07-19 11:44 ` john
  2013-07-19 13:55   ` list
@ 2013-07-22 13:13   ` mackyle
  1 sibling, 0 replies; 6+ messages in thread
From: mackyle @ 2013-07-22 13:13 UTC (permalink / raw)


On Jul 19, 2013, at 04:44, John Keeping wrote:
> On Fri, Jul 19, 2013 at 01:29:52PM +0200, Christian Hesse wrote:
>> cgit is great and I enjoy it a lot. However it has one drawback  
>> compared to
>> gitweb: The idle column in repository listing shows the age of a
>> (configurable) file from the repository. I think that is stupid  
>> behavior as I
>> have a lot of "0 min." entries if I run "git gc" on my repositories  
>> or the
>> date since last push or pull otherwise.
>>
>> In contrast to that gitweb shows the time since the last commit. I  
>> would
>> prefer to have that in cgit as well. Any chance to get that? Or is  
>> there any
>> good reason why the idle column is as is?
>
> This was discussed a couple of months ago [1].  You can use a hook and
> agefile to make CGit behave like GitWeb as described in that message.
>
> [1] http://article.gmane.org/gmane.comp.version-control.cgit/1059

Actually if you want it to behave like gitweb you'll need to use  
something more like:

git for-each-ref --sort=-committerdate --format='% 
(committerdate:iso8601)' \
	--count=1 refs/heads > info/lastactivity

Since gitweb.perl actually uses:

	open($fd, "-|", git_cmd(), 'for-each-ref',
	     '--format=%(committer)',
	     '--sort=-committerdate',
	     '--count=1',
	     'refs/heads') or return;

to get the timestamp which it uses to compute the age string.


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

* Idle column
  2013-07-22  7:15     ` list
@ 2013-08-12 18:48       ` Jason
  0 siblings, 0 replies; 6+ messages in thread
From: Jason @ 2013-08-12 18:48 UTC (permalink / raw)


On Mon, Jul 22, 2013 at 1:15 AM, Christian Hesse <list at eworm.de> wrote:
>
> How about something like this?


That's a nice addition. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20130812/e6f242cb/attachment.html>


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

end of thread, other threads:[~2013-08-12 18:48 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-19 11:29 Idle column list
2013-07-19 11:44 ` john
2013-07-19 13:55   ` list
2013-07-22  7:15     ` list
2013-08-12 18:48       ` Jason
2013-07-22 13:13   ` mackyle

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