aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2009-07-31 16:55:27 +0200
committerLars Hjemli <hjemli@gmail.com>2009-07-31 17:41:21 +0200
commit46b7abed99e957008c01c02cf612aa526ba92f04 (patch)
tree2cdbfe5281c2ffa645def488d53db0a8b82842f4 /cgit.h
parentui-snapshot: use cgit_{open|close}_filter() to execute compressors (diff)
downloadcgit-46b7abed99e957008c01c02cf612aa526ba92f04.tar.xz
cgit-46b7abed99e957008c01c02cf612aa526ba92f04.zip
ui-tree: add support for source-filter option
This new option is used to specify an external command which will be executed when displaying blob content in the tree view. Blob content will be written to STDIN of the filter and STDOUT from the filter will be included verbatim in the html output from cgit. The file name of the blob will be passed as the only argument to the filter command. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index d0fff1f..f9cf0df 100644
--- a/cgit.h
+++ b/cgit.h
@@ -183,6 +183,7 @@ struct cgit_config {
int summary_branches;
int summary_log;
int summary_tags;
+ struct cgit_filter *source_filter;
};
struct cgit_page {