aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-04-08 23:57:12 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2013-04-10 21:48:26 (JST)
commit389cc17357e2040c9542d3e085f64a8d2f085e9a (patch)
tree0696cd47fead7576cf03f06eec067b3e5b2c365a /shared.c
parent880223dc845e8b502e753425b889cbb70b73478e (diff)
downloadcgit-389cc17357e2040c9542d3e085f64a8d2f085e9a.zip
cgit-389cc17357e2040c9542d3e085f64a8d2f085e9a.tar.gz
Add branch-sort and repo.branch-sort options.
When set to "name", branches are sorted by name, which is the current default. When set to "age", branches are sorted by the age of the repository. This feature was requested by Konstantin Ryabitsev for use on kernel.org. Proposed-by: Konstantin Ryabitsev <mricon@kernel.org>
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 10be355..4369378 100644
--- a/shared.c
+++ b/shared.c
@@ -63,6 +63,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
63 ret->enable_remote_branches = ctx.cfg.enable_remote_branches; 63 ret->enable_remote_branches = ctx.cfg.enable_remote_branches;
64 ret->enable_subject_links = ctx.cfg.enable_subject_links; 64 ret->enable_subject_links = ctx.cfg.enable_subject_links;
65 ret->max_stats = ctx.cfg.max_stats; 65 ret->max_stats = ctx.cfg.max_stats;
66 ret->branch_sort = ctx.cfg.branch_sort;
66 ret->commit_sort = ctx.cfg.commit_sort; 67 ret->commit_sort = ctx.cfg.commit_sort;
67 ret->module_link = ctx.cfg.module_link; 68 ret->module_link = ctx.cfg.module_link;
68 ret->readme = ctx.cfg.readme; 69 ret->readme = ctx.cfg.readme;