summaryrefslogtreecommitdiff
path: root/src/diff_xdiff.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/diff_xdiff.h')
-rw-r--r--src/diff_xdiff.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/diff_xdiff.h b/src/diff_xdiff.h
index c547b00cf..98e11b2cb 100644
--- a/src/diff_xdiff.h
+++ b/src/diff_xdiff.h
@@ -11,6 +11,11 @@
#include "diff_patch.h"
#include "xdiff/xdiff.h"
+/* xdiff cannot cope with large files. these files should not be passed to
+ * xdiff. callers should treat these large files as binary.
+ */
+#define GIT_XDIFF_MAX_SIZE (1024LL * 1024 * 1023)
+
/* A git_xdiff_output is a git_diff_output with extra fields necessary
* to use libxdiff. Calling git_xdiff_init() will set the diff_cb field
* of the output to use xdiff to generate the diffs.