Website Summary Files Commits Branches @commit @diff @stats
path: root / cgit.h
diff options
context:
space:
mode:
Commit389cc17357e2040c9542d3e085f64a8d2f085e9a (patch)
Author
 Jason A. Donenfeld <Jason@zx2c4.com>
2013-04-08 16:57:12 +0200
Committer
 Jason A. Donenfeld <Jason@zx2c4.com>
2013-04-10 14:48:26 +0200
Files0696cd47fead7576cf03f06eec067b3e5b2c365a /cgit.h
cgit-389cc17357e2040c9542d3e085f64a8d2f085e9a.tar
cgit-389cc17357e2040c9542d3e085f64a8d2f085e9a.tar.gz
cgit-389cc17357e2040c9542d3e085f64a8d2f085e9a.zip
Parent880223dc845e8b502e753425b889cbb70b73478e (diff)
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>
1 files changed, 2 insertions, 0 deletions
-rw-r--r--cgit.h2
diff --git a/cgit.h b/cgit.h
index 3e9d55b..850b792 100644
--- a/cgit.h
+++ b/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;