summaryrefslogtreecommitdiff
path: root/cache-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-21 16:16:28 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-21 16:16:28 -0800
commit214cbb7b1dc876c4d51442b59b7f850e47916fc5 (patch)
tree40d7354c6be39528ea02b1b8075ed243ded7087c /cache-tree.c
parentc0b4d2097998292299749d79c8b3c51322927253 (diff)
parent4eb105c11970747e8b78bd0275ff9ae431d58d1d (diff)
downloadgit-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 'cache-tree.c')
-rw-r--r--cache-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache-tree.c b/cache-tree.c
index 2d8947b518..16c3a36b48 100644
--- a/cache-tree.c
+++ b/cache-tree.c
@@ -813,7 +813,7 @@ static void prime_cache_tree_rec(struct repository *r,
struct cache_tree_sub *sub;
struct tree *subtree = lookup_tree(r, &entry.oid);
- if (parse_tree(subtree) < 0)
+ if (repo_parse_tree(the_repository, subtree) < 0)
exit(128);
sub = cache_tree_sub(it, entry.path);
sub->cache_tree = cache_tree();