mirror of
https://git.zx2c4.com/cgit
synced 2025-08-29 06:08:24 +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
2
cgit.h
2
cgit.h
|
@ -85,6 +85,7 @@ struct cgit_repo {
|
|||
int enable_remote_branches;
|
||||
int enable_subject_links;
|
||||
int max_stats;
|
||||
int branch_sort;
|
||||
int commit_sort;
|
||||
time_t mtime;
|
||||
struct cgit_filter *about_filter;
|
||||
|
@ -234,6 +235,7 @@ struct cgit_config {
|
|||
int summary_log;
|
||||
int summary_tags;
|
||||
int ssdiff;
|
||||
int branch_sort;
|
||||
int commit_sort;
|
||||
struct string_list mimetypes;
|
||||
struct cgit_filter *about_filter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue