Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.zx2c4.com/cgit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/cgit.h
diff options
context:
space:
mode:
authorChris Burroughs <chris.burroughs@gmail.com>2014-08-04 17:23:08 +0400
committerJason A. Donenfeld <Jason@zx2c4.com>2014-12-24 05:08:20 +0300
commit96ceb9a95a7a321209cff347fefd141a9fffc7ca (patch)
tree5077ac54da1f7992d991746492855665454147c9 /cgit.h
parent3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34 (diff)
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 {
} 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;
};