summaryrefslogtreecommitdiff
path: root/ui-repolist.c
diff options
context:
space:
mode:
authorTobias Bieniek <Tobias.Bieniek@gmx.de>2012-10-09 18:53:29 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2012-10-17 14:30:22 +0000
commit7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb (patch)
treeb6c00afc3ce98770e645f01cfc0a0ee8384fe0ec /ui-repolist.c
parent521e10c884055c800078e6dada97ccf6c5193aad (diff)
downloadcgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.tar
cgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.tar.gz
cgit-7a4e7c8ffbacfad5ac83ad20426d7911c2eacdeb.zip
ui-repolist: Add "section-sort" flag to control section sorting.
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". Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui-repolist.c')
-rw-r--r--ui-repolist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index 36c067a..dead1bf 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -257,7 +257,7 @@ void cgit_print_repolist()
if(ctx.qry.sort)
sorted = sort_repolist(ctx.qry.sort);
- else
+ else if (ctx.cfg.section_sort)
sort_repolist("section");
html("<table summary='repository list' class='list nowrap'>");