aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/config
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-09-14 11:16:59 -0700
committerJunio C Hamano <gitster@pobox.com>2023-09-14 11:16:59 -0700
commit174dfe463778680382d32a280ad73bc12e2017d3 (patch)
treead21d985a01f21c35fd13fbe5702b1c9f0c77ca5 /Documentation/config
parent6a4e7440fb4b20822e1854925c0dcfae0c64402d (diff)
parent4d5693ba05ae0d722ad5a6c0e34296caf6be9b74 (diff)
downloadgit-174dfe463778680382d32a280ad73bc12e2017d3.tar.gz
Merge branch 'jk/tree-name-and-depth-limit'
We now limit depth of the tree objects and maximum length of pathnames recorded in tree objects. * jk/tree-name-and-depth-limit: lower core.maxTreeDepth default to 2048 tree-diff: respect max_allowed_tree_depth list-objects: respect max_allowed_tree_depth read_tree(): respect max_allowed_tree_depth traverse_trees(): respect max_allowed_tree_depth add core.maxTreeDepth config fsck: detect very large tree pathnames tree-walk: rename "error" variable tree-walk: drop MAX_TRAVERSE_TREES macro tree-walk: reduce stack size for recursive functions
Diffstat (limited to 'Documentation/config')
-rw-r--r--Documentation/config/core.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/config/core.txt b/Documentation/config/core.txt
index dfbdaf00b8..0e8c2832bf 100644
--- a/Documentation/config/core.txt
+++ b/Documentation/config/core.txt
@@ -736,3 +736,9 @@ core.abbrev::
If set to "no", no abbreviation is made and the object names
are shown in their full length.
The minimum length is 4.
+
+core.maxTreeDepth::
+ The maximum depth Git is willing to recurse while traversing a
+ tree (e.g., "a/b/cde/f" has a depth of 4). This is a fail-safe
+ to allow Git to abort cleanly, and should not generally need to
+ be adjusted. The default is 4096.