]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.h
cgit.c: allow repo.*-filter options to unset the current default
[ps-cgit] / cgit.h
diff --git a/cgit.h b/cgit.h
index d0fff1f7f8cd5a0af073afce2d8ea23301811154..f10ba054bc1a7b0d0e728e10983490347a9d9713 100644 (file)
--- a/cgit.h
+++ b/cgit.h
@@ -48,6 +48,15 @@ typedef void (*configfn)(const char *name, const char *value);
 typedef void (*filepair_fn)(struct diff_filepair *pair);
 typedef void (*linediff_fn)(char *line, int len);
 
+struct cgit_filter {
+       char *cmd;
+       char **argv;
+       int old_stdout;
+       int pipe_fh[2];
+       int pid;
+       int exitstatus;
+};
+
 struct cgit_repo {
        char *url;
        char *name;
@@ -64,6 +73,8 @@ struct cgit_repo {
        int enable_log_linecount;
        int max_stats;
        time_t mtime;
+       struct cgit_filter *commit_filter;
+       struct cgit_filter *source_filter;
 };
 
 struct cgit_repolist {
@@ -129,15 +140,6 @@ struct cgit_query {
        int showmsg;
 };
 
-struct cgit_filter {
-       char *cmd;
-       char **argv;
-       int old_stdout;
-       int pipe_fh[2];
-       int pid;
-       int exitstatus;
-};
-
 struct cgit_config {
        char *agefile;
        char *cache_root;
@@ -183,6 +185,8 @@ struct cgit_config {
        int summary_branches;
        int summary_log;
        int summary_tags;
+       struct cgit_filter *commit_filter;
+       struct cgit_filter *source_filter;
 };
 
 struct cgit_page {