From f58a6cb60222d32063437ae85859e6e7ac7ffc8e Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 28 Jun 2018 18:22:09 -0700 Subject: tree: allow lookup_tree to handle arbitrary repositories Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- tree.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tree.h') diff --git a/tree.h b/tree.h index 2ea21ed174..d4807dc805 100644 --- a/tree.h +++ b/tree.h @@ -12,8 +12,7 @@ struct tree { unsigned long size; }; -#define lookup_tree(r, oid) lookup_tree_##r(oid) -struct tree *lookup_tree_the_repository(const struct object_id *oid); +struct tree *lookup_tree(struct repository *r, const struct object_id *oid); int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); -- cgit v1.2.3