From a5e15537268410e268c7b26aa69d03b347c326c8 Mon Sep 17 00:00:00 2001 From: Jason A. Donenfeld Date: Mon, 13 Jan 2014 04:04:52 +0100 Subject: filter: add support for email filter Signed-off-by: Jason A. Donenfeld --- filter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'filter.c') 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) reap_filter(ctx.cfg.about_filter); reap_filter(ctx.cfg.commit_filter); reap_filter(ctx.cfg.source_filter); + reap_filter(ctx.cfg.email_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); } } @@ -403,6 +405,7 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype) colon = NULL; switch (filtertype) { + case EMAIL: case SOURCE: case ABOUT: argument_count = 1; -- cgit v1.2.3-70-g09d2