aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorChris Burroughs2014-08-04 09:23:08 -0400
committerJason A. Donenfeld2014-12-23 19:08:20 -0700
commit96ceb9a95a7a321209cff347fefd141a9fffc7ca (patch)
tree5077ac54da1f7992d991746492855665454147c9 /cgit.h
parent3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34 (diff)
downloadcgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.tar.gz
cgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.tar.bz2
cgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.zip
repolist: add owner-filter
This allows custom links to be used for repository owners by configuring a filter to be applied in the "Owner" column in the repository list.
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cgit.h b/cgit.h
index 0c1585d..42140ac 100644
--- a/cgit.h
+++ b/cgit.h
@@ -57,7 +57,7 @@ typedef enum {
57} diff_type; 57} diff_type;
58 58
59typedef enum { 59typedef enum {
60 ABOUT, COMMIT, SOURCE, EMAIL, AUTH 60 ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER
61} filter_type; 61} filter_type;
62 62
63struct cgit_filter { 63struct cgit_filter {
@@ -104,6 +104,7 @@ struct cgit_repo {
104 struct cgit_filter *commit_filter; 104 struct cgit_filter *commit_filter;
105 struct cgit_filter *source_filter; 105 struct cgit_filter *source_filter;
106 struct cgit_filter *email_filter; 106 struct cgit_filter *email_filter;
107 struct cgit_filter *owner_filter;
107 struct string_list submodules; 108 struct string_list submodules;
108}; 109};
109 110
@@ -257,6 +258,7 @@ struct cgit_config {
257 struct cgit_filter *commit_filter; 258 struct cgit_filter *commit_filter;
258 struct cgit_filter *source_filter; 259 struct cgit_filter *source_filter;
259 struct cgit_filter *email_filter; 260 struct cgit_filter *email_filter;
261 struct cgit_filter *owner_filter;
260 struct cgit_filter *auth_filter; 262 struct cgit_filter *auth_filter;
261}; 263};
262 264