From 96ceb9a95a7a321209cff347fefd141a9fffc7ca Mon Sep 17 00:00:00 2001 From: Chris Burroughs Date: Mon, 4 Aug 2014 09:23:08 -0400 Subject: 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. --- cgit.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 0c1585d..42140ac 100644 --- a/cgit.h +++ b/cgit.h @@ -57,7 +57,7 @@ typedef enum { } diff_type; typedef enum { - ABOUT, COMMIT, SOURCE, EMAIL, AUTH + ABOUT, COMMIT, SOURCE, EMAIL, AUTH, OWNER } filter_type; struct cgit_filter { @@ -104,6 +104,7 @@ struct cgit_repo { struct cgit_filter *commit_filter; struct cgit_filter *source_filter; struct cgit_filter *email_filter; + struct cgit_filter *owner_filter; struct string_list submodules; }; @@ -257,6 +258,7 @@ struct cgit_config { struct cgit_filter *commit_filter; struct cgit_filter *source_filter; struct cgit_filter *email_filter; + struct cgit_filter *owner_filter; struct cgit_filter *auth_filter; }; -- cgit v1.2.3-70-g09d2