aboutsummaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-13 21:13:11 +0900
committerJunio C Hamano <gitster@pobox.com>2022-12-13 21:13:11 +0900
commit5f22dcc02df6e69145489c8bec6872e9452688b8 (patch)
tree3ac971cab6328eb6d415796f80659f634630cde2 /attr.h
parent7800e1dccf622ba8d490b4c1c92af734be6242ff (diff)
parentd96ea538e8dd0fcf381089a3b09c0a9af3617351 (diff)
downloadgit-5f22dcc02df6e69145489c8bec6872e9452688b8.tar.xz
Sync with Git 2.32.5
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/attr.h b/attr.h
index 3732505eda..583543a84a 100644
--- a/attr.h
+++ b/attr.h
@@ -107,6 +107,18 @@
* - Free the `attr_check` struct by calling `attr_check_free()`.
*/
+/**
+ * The maximum line length for a gitattributes file. If the line exceeds this
+ * length we will ignore it.
+ */
+#define ATTR_MAX_LINE_LENGTH 2048
+
+ /**
+ * The maximum size of the giattributes file. If the file exceeds this size we
+ * will ignore it.
+ */
+#define ATTR_MAX_FILE_SIZE (100 * 1024 * 1024)
+
struct index_state;
/**