From 94c09a7197cde15587318dbb60cdc591d443f45c Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 28 Jun 2018 18:22:07 -0700 Subject: object: allow lookup_object to handle arbitrary repositories Signed-off-by: Jonathan Nieder Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- object.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'object.h') diff --git a/object.h b/object.h index 6f3271eb22..0d7d74129b 100644 --- a/object.h +++ b/object.h @@ -109,8 +109,7 @@ extern struct object *get_indexed_object(unsigned int); * half-initialised objects, the caller is expected to initialize them * by calling parse_object() on them. */ -#define lookup_object(r, s) lookup_object_##r(s) -struct object *lookup_object_the_repository(const unsigned char *sha1); +struct object *lookup_object(struct repository *r, const unsigned char *sha1); extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj); -- cgit v1.2.3