diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-13 04:04:52 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2014-01-14 02:00:07 +0100 |
commit | a5e15537268410e268c7b26aa69d03b347c326c8 (patch) | |
tree | 77f42b7f03788d4741bfd60b49719fbc649181ff /filter.c | |
parent | 800380dde797ae35d738a644acdae2fabb9a0d44 (diff) | |
download | cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.gz cgit-a5e15537268410e268c7b26aa69d03b347c326c8.tar.bz2 cgit-a5e15537268410e268c7b26aa69d03b347c326c8.zip |
filter: add support for email filter
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'filter.c')
-rw-r--r-- | filter.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |