diff options
| author | Junio C Hamano <gitster@pobox.com> | 2026-01-21 16:16:28 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-21 16:16:28 -0800 |
| commit | 214cbb7b1dc876c4d51442b59b7f850e47916fc5 (patch) | |
| tree | 40d7354c6be39528ea02b1b8075ed243ded7087c /list-objects.c | |
| parent | c0b4d2097998292299749d79c8b3c51322927253 (diff) | |
| parent | 4eb105c11970747e8b78bd0275ff9ae431d58d1d (diff) | |
| download | git-214cbb7b1dc876c4d51442b59b7f850e47916fc5.tar.xz | |
Merge branch 'rs/tree-wo-the-repository'
Remove implicit reliance on the_repository global in the APIs
around tree objects and make it explicit which repository to work
in.
* rs/tree-wo-the-repository:
cocci: remove obsolete the_repository rules
cocci: convert parse_tree functions to repo_ variants
tree: stop using the_repository
tree: use repo_parse_tree()
path-walk: use repo_parse_tree_gently()
pack-bitmap-write: use repo_parse_tree()
delta-islands: use repo_parse_tree()
bloom: use repo_parse_tree()
add-interactive: use repo_parse_tree_indirect()
tree: add repo_parse_tree*()
environment: move access to core.maxTreeDepth into repo settings
Diffstat (limited to 'list-objects.c')
| -rw-r--r-- | list-objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/list-objects.c b/list-objects.c index 42c17d9573..91b23e22f7 100644 --- a/list-objects.c +++ b/list-objects.c @@ -167,10 +167,10 @@ static void process_tree(struct traversal_context *ctx, !revs->include_check_obj(&tree->object, revs->include_check_data)) return; - if (ctx->depth > max_allowed_tree_depth) + if (ctx->depth > revs->repo->settings.max_allowed_tree_depth) die("exceeded maximum allowed tree depth"); - failed_parse = parse_tree_gently(tree, 1); + failed_parse = repo_parse_tree_gently(the_repository, tree, 1); if (failed_parse) { if (revs->ignore_missing_links) return; |
