diff options
author | Stefan Beller <sbeller@google.com> | 2018-06-29 04:22:06 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-29 20:43:39 +0300 |
commit | a962da1ef59c71b6b18f71aeb25f1edaa99769f6 (patch) | |
tree | 365978e443f24a9c44e7495d73f1a5c3b3f994c2 /object.h | |
parent | a74093da5ed601a09fa158e5ba6f6f14c1142a3e (diff) |
object: allow object_as_type to handle arbitrary repositories
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'object.h')
-rw-r--r-- | object.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -114,8 +114,7 @@ struct object *lookup_object_the_repository(const unsigned char *sha1); extern void *create_object(struct repository *r, const unsigned char *sha1, void *obj); -#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); +void *object_as_type(struct repository *r, struct object *obj, enum object_type type, int quiet); /* * Returns the object, having parsed it to find out what it is. |