[PATCH 1/3] Added "sort-sections" flag for the repository listing

Tobias Bieniek Tobias.Bieniek at gmx.de
Tue Oct 9 23:54:29 CEST 2012


2012/10/9 Jason A. Donenfeld <Jason at zx2c4.com>:
>> Subject: [PATCH] Added "sort-sections" flag for the repository listing
>>
>> Flag which, when set to "1", will sort the sections on the repository
>> listing by name. Set this flag to "0" if the order in the cgitrc file
>> should be preserved. Default value: "1".
>
> This functionality already exists, via the section-sort option, merged
> with master in July:
> http://git.zx2c4.com/cgit/commit/?id=184c5655b2e350dbd0dd8be75d3f370f22aa6dee

Not quite. This patch deals with the sorting of the sections, not the
content of the sections!

Example: http://git.xcsoar.org/

Normally cgit would order the existing sections like this:
Individual developer repositories, Mirrors of related projects,
Official repositories

but we wanted it like this:
Official repositories, Individual developer repositories, Mirrors of
related projects

so the solution is to set sort-sections to 0 and define the order
manually in the cgitrc file.




More information about the CGit mailing list