mirror of
https://git.zx2c4.com/cgit
synced 2025-07-31 16:14:28 +02:00
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>
This commit is contained in:
parent
880223dc84
commit
389cc17357
5 changed files with 46 additions and 22 deletions
1
shared.c
1
shared.c
|
@ -63,6 +63,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
|
|||
ret->enable_remote_branches = ctx.cfg.enable_remote_branches;
|
||||
ret->enable_subject_links = ctx.cfg.enable_subject_links;
|
||||
ret->max_stats = ctx.cfg.max_stats;
|
||||
ret->branch_sort = ctx.cfg.branch_sort;
|
||||
ret->commit_sort = ctx.cfg.commit_sort;
|
||||
ret->module_link = ctx.cfg.module_link;
|
||||
ret->readme = ctx.cfg.readme;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue