diff options
author | Georg Lukas <georg@op-co.de> | 2009-11-28 11:44:33 (JST) |
---|---|---|
committer | Georg Lukas <georg@op-co.de> | 2009-11-28 11:44:33 (JST) |
commit | ef07ccc72da0270e9298c36046a0187dc359b0da (patch) | |
tree | 57a2ffdeb929d9b4ed44dfae3a1fb7ca550aac63 /cgit.h | |
parent | 545b5a5dcae2a0c322381493ee90f6c37353da9c (diff) | |
download | cgit-ef07ccc72da0270e9298c36046a0187dc359b0da.zip cgit-ef07ccc72da0270e9298c36046a0187dc359b0da.tar.gz |
"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 'cgit.h')
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -185,6 +185,7 @@ struct cgit_config { | |||
185 | int max_lock_attempts; | 185 | int max_lock_attempts; |
186 | int max_msg_len; | 186 | int max_msg_len; |
187 | int max_repodesc_len; | 187 | int max_repodesc_len; |
188 | int max_blob_size; | ||
188 | int max_stats; | 189 | int max_stats; |
189 | int nocache; | 190 | int nocache; |
190 | int noplainemail; | 191 | int noplainemail; |