aboutsummaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
authorGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-13 12:04:52 (JST)
committerGravatar Jason A. Donenfeld <Jason@zx2c4.com>2014-01-14 10:00:07 (JST)
commita5e15537268410e268c7b26aa69d03b347c326c8 (patch)
tree77f42b7f03788d4741bfd60b49719fbc649181ff /filter.c
parent800380dde797ae35d738a644acdae2fabb9a0d44 (diff)
downloadcgit-a5e15537268410e268c7b26aa69d03b347c326c8.zip
cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.gz
filter: add support for email filter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/filter.c b/filter.c
index 7983737..08ce7a5 100644
--- a/filter.c
+++ b/filter.c
@@ -37,10 +37,12 @@ void cgit_cleanup_filters(void)
37 reap_filter(ctx.cfg.about_filter); 37 reap_filter(ctx.cfg.about_filter);
38 reap_filter(ctx.cfg.commit_filter); 38 reap_filter(ctx.cfg.commit_filter);
39 reap_filter(ctx.cfg.source_filter); 39 reap_filter(ctx.cfg.source_filter);
40 reap_filter(ctx.cfg.email_filter);
40 for (i = 0; i < cgit_repolist.count; ++i) { 41 for (i = 0; i < cgit_repolist.count; ++i) {
41 reap_filter(cgit_repolist.repos[i].about_filter); 42 reap_filter(cgit_repolist.repos[i].about_filter);
42 reap_filter(cgit_repolist.repos[i].commit_filter); 43 reap_filter(cgit_repolist.repos[i].commit_filter);
43 reap_filter(cgit_repolist.repos[i].source_filter); 44 reap_filter(cgit_repolist.repos[i].source_filter);
45 reap_filter(cgit_repolist.repos[i].email_filter);
44 } 46 }
45} 47}
46 48
@@ -403,6 +405,7 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype)
403 colon = NULL; 405 colon = NULL;
404 406
405 switch (filtertype) { 407 switch (filtertype) {
408 case EMAIL:
406 case SOURCE: 409 case SOURCE:
407 case ABOUT: 410 case ABOUT:
408 argument_count = 1; 411 argument_count = 1;