diff options
Diffstat (limited to '')
-rw-r--r--source/shared.h7
1 file changed, 7 insertions, 0 deletions
diff --git a/source/shared.h b/source/shared.h
index 46324a1..df18772 100644
--- a/source/shared.h
+++ b/source/shared.h
@@ -66,6 +66,13 @@ extern int cgit_diff_files(const struct object_id *old_oid, const struct object_
linediff_fn fn);
/*
+ * Whether a blob of size bytes is past max-blob-size. Callers ask before
+ * reading the object, so a huge blob stays out of memory rather than being
+ * noticed once it is already there.
+ */
+extern int cgit_blob_too_large(unsigned long size);
+
+/*
* Limit a diff to the paths below prefix, which is taken literally.
*/
extern void cgit_diff_limit_path(struct diff_options *opt, const char *prefix);