renamed default branch, no "Idle" value on index at all

François Kooman fkooman at tuxed.net
Fri Aug 21 18:25:05 CEST 2020


On 8/21/20 6:01 PM, John Keeping wrote:
> It looks like the "guess default branch" logic isn't considered for the
> index page.

Ah I see!

> Alternatively you can use a hook to update an agefile and that will be
> read instead of the default branch.  This also allows setting the last
> modified time to be the newest across a collection of branches.

I did that now as it actually nice to base the age on all branches and 
not just on the default.

> I had a quick look at guessing the default branch (from HEAD) for the
> repolist, but that's not simple because it requires initialising Git in
> each repository (see cgit.c::guess_defbranch() which is used for repo
> pages).

Seems there is not an quick easy fix to make that work, in any case the 
hook is better!

Thanks!

Regards,
François


More information about the CGit mailing list