Christian Hesse <[email protected]> on Fri, 2013/07/19 15:55:
> John Keeping <[email protected]> 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);}
From abe91eac0126ae57361ade0b1addcc2c365e9a97 Mon Sep 17 00:00:00 2001
From: Christian Hesse <[email protected]>
Date: Mon, 22 Jul 2013 09:13:39 +0200
Subject: [PATCH 2/2] add a note about generating agefile in hook

---
 cgitrc.5.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index 28684f7..dfb5bd4 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -39,7 +39,8 @@ agefile::
 	to specify the date and time of the youngest commit in the repository.
 	The first line in the file is used as input to the "parse_date"
 	function in libgit. Recommended timestamp-format is "yyyy-mm-dd
-	hh:mm:ss". Default value: "info/web/last-modified".
+	hh:mm:ss". You may want to generate this file from a post-receive
+	hook. Default value: "info/web/last-modified".
 
 branch-sort::
 	Flag which, when set to "age", enables date ordering in the branch ref
-- 
1.8.3.3

Attachment: signature.asc
Description: PGP signature

_______________________________________________
CGit mailing list
[email protected]
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to