diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-09-14 11:16:59 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-09-14 11:16:59 -0700 |
| commit | 174dfe463778680382d32a280ad73bc12e2017d3 (patch) | |
| tree | ad21d985a01f21c35fd13fbe5702b1c9f0c77ca5 /tree.h | |
| parent | Merge branch 'ks/ref-filter-sort-numerically' (diff) | |
| parent | lower core.maxTreeDepth default to 2048 (diff) | |
| download | git-174dfe463778680382d32a280ad73bc12e2017d3.tar.gz git-174dfe463778680382d32a280ad73bc12e2017d3.zip | |
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 'tree.h')
| -rw-r--r-- | tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -44,6 +44,7 @@ typedef int (*read_tree_fn_t)(const struct object_id *, struct strbuf *, const c int read_tree_at(struct repository *r, struct tree *tree, struct strbuf *base, + int depth, const struct pathspec *pathspec, read_tree_fn_t fn, void *context); |
