diff options
Diffstat (limited to 'filter.c')
-rw-r--r-- | filter.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -38,12 +38,14 @@ void cgit_cleanup_filters(void) | |||
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 | reap_filter(ctx.cfg.email_filter); |
41 | reap_filter(ctx.cfg.owner_filter); | ||
41 | reap_filter(ctx.cfg.auth_filter); | 42 | reap_filter(ctx.cfg.auth_filter); |
42 | for (i = 0; i < cgit_repolist.count; ++i) { | 43 | for (i = 0; i < cgit_repolist.count; ++i) { |
43 | reap_filter(cgit_repolist.repos[i].about_filter); | 44 | reap_filter(cgit_repolist.repos[i].about_filter); |
44 | reap_filter(cgit_repolist.repos[i].commit_filter); | 45 | reap_filter(cgit_repolist.repos[i].commit_filter); |
45 | reap_filter(cgit_repolist.repos[i].source_filter); | 46 | reap_filter(cgit_repolist.repos[i].source_filter); |
46 | reap_filter(cgit_repolist.repos[i].email_filter); | 47 | reap_filter(cgit_repolist.repos[i].email_filter); |
48 | reap_filter(cgit_repolist.repos[i].owner_filter); | ||
47 | } | 49 | } |
48 | } | 50 | } |
49 | 51 | ||
@@ -425,6 +427,10 @@ struct cgit_filter *cgit_new_filter(const char *cmd, filter_type filtertype) | |||
425 | argument_count = 2; | 427 | argument_count = 2; |
426 | break; | 428 | break; |
427 | 429 | ||
430 | case OWNER: | ||
431 | argument_count = 0; | ||
432 | break; | ||
433 | |||
428 | case SOURCE: | 434 | case SOURCE: |
429 | case ABOUT: | 435 | case ABOUT: |
430 | argument_count = 1; | 436 | argument_count = 1; |