Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-12-13 15:19:11 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-13 15:19:11 +0300
commit8253c0042147e005aecc4fdf24520d1ec2ab1642 (patch)
treea48384374c2e022cf6205633a2a263c4d2e3d730 /attr.h
parentfcdaa211e6127eeba69a121844e08aec67da2131 (diff)
parent02f498172348f7ba9dceb169305b74c7eca7a38d (diff)
Merge branch 'maint-2.35' into maint-2.36
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 3fb40cced0..2f22dffadb 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;
/**