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:09:40 +0300
committerJunio C Hamano <gitster@pobox.com>2022-12-13 15:09:40 +0300
commit8a755eddf5bf256613bc584f32cd44401a25897c (patch)
treeb5d92c6283e1b889bf50ff7056dfb1196e9277ac /attr.h
parentaf778cd9be6307e34f9f900fd42eb826c65b32da (diff)
parent82689d5e5d3f41da2ab1fbf9fbe7aacfd6da74c1 (diff)
Sync with Git 2.31.6
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;
/**