From 1268dfac1e98e973c63abb142551c64bba6a44ca Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Thu, 28 Jun 2018 18:21:54 -0700 Subject: object: add repository argument to object_as_type Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- object.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'object.h') diff --git a/object.h b/object.h index 2ba23c07a7..3faa89578f 100644 --- a/object.h +++ b/object.h @@ -114,7 +114,8 @@ struct object *lookup_object_the_repository(const unsigned char *sha1); extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj); -void *object_as_type(struct object *obj, enum object_type type, int quiet); +#define object_as_type(r, o, t, q) object_as_type_##r(o, t, q) +void *object_as_type_the_repository(struct object *obj, enum object_type type, int quiet); /* * Returns the object, having parsed it to find out what it is. -- cgit v1.2.3