summaryrefslogtreecommitdiffabout
path: root/cgit.h
authorLars Hjemli <hjemli@gmail.com>2009-08-09 11:22:00 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2009-08-09 11:22:00 (UTC)
commite976df27952ca1e450c1c3d420532ac9f5e3036b (patch) (unidiff)
tree2634538f3144c935d1579315d4de289e6c890f19 /cgit.h
parentf35db1cd2b75aac6952aa07713e44ca01fd89727 (diff)
downloadcgit-e976df27952ca1e450c1c3d420532ac9f5e3036b.zip
cgit-e976df27952ca1e450c1c3d420532ac9f5e3036b.tar.gz
cgit-e976df27952ca1e450c1c3d420532ac9f5e3036b.tar.bz2
Add support for repo.commit-filter and repo.source-filter
These options can be used to override the default commit- and source- filter settings per repository. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h') (more/less context) (ignore whitespace changes)
-rw-r--r--cgit.h20
1 files changed, 11 insertions, 9 deletions
diff --git a/cgit.h b/cgit.h
index 438301d..f10ba05 100644
--- a/cgit.h
+++ b/cgit.h
@@ -50,2 +50,11 @@ typedef void (*linediff_fn)(char *line, int len);
50 50
51struct cgit_filter {
52 char *cmd;
53 char **argv;
54 int old_stdout;
55 int pipe_fh[2];
56 int pid;
57 int exitstatus;
58};
59
51struct cgit_repo { 60struct cgit_repo {
@@ -66,2 +75,4 @@ struct cgit_repo {
66 time_t mtime; 75 time_t mtime;
76 struct cgit_filter *commit_filter;
77 struct cgit_filter *source_filter;
67}; 78};
@@ -131,11 +142,2 @@ struct cgit_query {
131 142
132struct cgit_filter {
133 char *cmd;
134 char **argv;
135 int old_stdout;
136 int pipe_fh[2];
137 int pid;
138 int exitstatus;
139};
140
141struct cgit_config { 143struct cgit_config {