diff options
| Commit | 96ceb9a95a7a321209cff347fefd141a9fffc7ca (patch) | |
|---|---|---|
| Author | 2014-08-04 09:23:08 -0400 | |
| Committer | 2014-12-23 19:08:20 -0700 | |
| Files | 5077ac54da1f7992d991746492855665454147c9 /filter.c | |
| cgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.tar cgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.tar.gz cgit-96ceb9a95a7a321209cff347fefd141a9fffc7ca.zip | ||
| Parent | 3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34 (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.
1 files changed, 6 insertions, 0 deletions
| -rw-r--r-- | filter.c | 6 |
@@ -38,12 +38,14 @@ void cgit_cleanup_filters(void) reap_filter(ctx.cfg.commit_filter); reap_filter(ctx.cfg.source_filter); reap_filter(ctx.cfg.email_filter); + reap_filter(ctx.cfg.owner_filter); reap_filter(ctx.cfg.auth_filter); for (i = 0; i < cgit_repolist.count; ++i) { reap_filter(cgit_repolist.repos[i].about_filter); reap_filter(cgit_repolist.repos[i].commit_filter); reap_filter(cgit_repolist.repos[i].source_filter); reap_filter(cgit_repolist.repos[i].email_filter); + reap_filter(cgit_repolist.repos[i].owner_filter); } } @@ -425,6 +427,10 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype) argument_count = 2; break; + case OWNER: + argument_count = 0; + break; + case SOURCE: case ABOUT: argument_count = 1; |
