about summary refs log tree commit diff
path: root/cgit.h
diff options
context:
space:
mode:
authorGeorg Lukas <georg@op-co.de>2009-11-28 03:44:33 +0100
committerGeorg Lukas <georg@op-co.de>2009-11-28 03:44:33 +0100
commitef07ccc72da0270e9298c36046a0187dc359b0da (patch)
tree57a2ffdeb929d9b4ed44dfae3a1fb7ca550aac63 /cgit.h
parentcgit.css: highlight directories in tree (diff)
downloadcgit-pink-ef07ccc72da0270e9298c36046a0187dc359b0da.tar.gz
cgit-pink-ef07ccc72da0270e9298c36046a0187dc359b0da.zip
"max-blob-size" config var to limit generated HTML size
Sometimes it is not feasible to generate the HTML pretty-print for large
files, especially if a source-filter is involved or binary data is to be
displayed. The "max-blob-size" config var allows to disable HTML output
for blobs bigger than X KBytes. Plain downloads are not affected.

Signed-off-by: Georg Lukas <georg@op-co.de>
Diffstat (limited to '')
-rw-r--r--cgit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 6c6c460..39853df 100644
--- a/cgit.h
+++ b/cgit.h
@@ -185,6 +185,7 @@ struct cgit_config {
 	int max_lock_attempts;
 	int max_msg_len;
 	int max_repodesc_len;
+	int max_blob_size;
 	int max_stats;
 	int nocache;
 	int noplainemail;