From a8a50f29aeab6cf3cd848caaa8229ab26d542b80 Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Fri, 9 Jan 2026 22:30:20 +0100 Subject: tree: stop using the_repository MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Push the use of the_repository to the remaining callers by turning the compatibility wrappers into macros, whose use still requires USE_THE_REPOSITORY_VARIABLE to be defined. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- tree.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tree.c') diff --git a/tree.c b/tree.c index edcf6a284c..d703ab97c8 100644 --- a/tree.c +++ b/tree.c @@ -1,5 +1,3 @@ -#define USE_THE_REPOSITORY_VARIABLE - #include "git-compat-util.h" #include "hex.h" #include "tree.h" @@ -185,11 +183,6 @@ int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size) return 0; } -int parse_tree_gently(struct tree *item, int quiet_on_missing) -{ - return repo_parse_tree_gently(the_repository, item, quiet_on_missing); -} - int repo_parse_tree_gently(struct repository *r, struct tree *item, int quiet_on_missing) { @@ -219,11 +212,6 @@ void free_tree_buffer(struct tree *tree) tree->object.parsed = 0; } -struct tree *parse_tree_indirect(const struct object_id *oid) -{ - return repo_parse_tree_indirect(the_repository, oid); -} - struct tree *repo_parse_tree_indirect(struct repository *r, const struct object_id *oid) { -- cgit v1.3