diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-08 23:57:12 (JST) |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2013-04-10 21:48:26 (JST) |
commit | 389cc17357e2040c9542d3e085f64a8d2f085e9a (patch) | |
tree | 0696cd47fead7576cf03f06eec067b3e5b2c365a /cgit.h | |
parent | 880223dc845e8b502e753425b889cbb70b73478e (diff) | |
download | cgit-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 'cgit.h')
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -85,6 +85,7 @@ struct cgit_repo { | |||
85 | int enable_remote_branches; | 85 | int enable_remote_branches; |
86 | int enable_subject_links; | 86 | int enable_subject_links; |
87 | int max_stats; | 87 | int max_stats; |
88 | int branch_sort; | ||
88 | int commit_sort; | 89 | int commit_sort; |
89 | time_t mtime; | 90 | time_t mtime; |
90 | struct cgit_filter *about_filter; | 91 | struct cgit_filter *about_filter; |
@@ -234,6 +235,7 @@ struct cgit_config { | |||
234 | int summary_log; | 235 | int summary_log; |
235 | int summary_tags; | 236 | int summary_tags; |
236 | int ssdiff; | 237 | int ssdiff; |
238 | int branch_sort; | ||
237 | int commit_sort; | 239 | int commit_sort; |
238 | struct string_list mimetypes; | 240 | struct string_list mimetypes; |
239 | struct cgit_filter *about_filter; | 241 | struct cgit_filter *about_filter; |