cgit sort branches

John Keeping john at keeping.me.uk
Sun Jan 17 11:36:55 CET 2016


On Sat, Jan 16, 2016 at 07:56:25PM -0800, Radha Mohan wrote:
> I set up cgit for my git server and am looking for a way to sort the
> branches in each repo summary page according to its age (newest
> first).
> I used "branch-sort=age" but it doesn't seem to work.
> Here is my cgitrc file contents.
> 
> logo=/cgit/cgit.png
> css=/cgit/cgit.css
> robots=index, nofollow
> scan-path=/repo/git
> case-sensitive-sort=0
> enable-git-config=1
> root-title=Git repository
> branch-sort=age
> 
> 
> Any pointers on how to achieve sort?

"branch-sort=age" should do it.  I notice you have "enable-git-config=1"
is there any chance you have some repo-specific configuration that is
overriding branch-sort?


More information about the CGit mailing list