From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjemli at gmail.com (Lars Hjemli) Date: Wed, 6 Mar 2013 07:24:20 +0100 Subject: Branch Age Sorting and Idle Most Recent Sorting [Was: Re: Today is a big day for us] In-Reply-To: References: Message-ID: > On Tue, Mar 5, 2013 at 2:30 PM, Konstantin Ryabitsev wrote: >>> It seems to me that the "Idle" column in global view reflects the last >>> change on master branch of a given repository, but most of the development >>> is happening on other branches, so this doesn't give any good overview >>> about how alive the repository is. gitweb was always showing the time >>> elapsed from latest modification on any of the branches in the repository. To make cgits idle-time appear similar to gitwebs, one can use the 'agefile' (http://git.zx2c4.com/cgit/tree/cgitrc.5.txt#n36) combined with a git hook in each repository. As an example, here is the post-receive hook installed in the cgit repo on hjemli.net: #!/bin/sh cd /pub/git/cgit git for-each-ref --sort=-authordate --format='%(authordate:iso8601)' --count=1 >info/touched By doing it this way, the loading of the index page is a much cheaper operation (which is especially important on a heavily used site like kernel.org). -- larsh