diff options
author | Stefan Beller <sbeller@google.com> | 2018-05-08 22:37:35 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-05-09 06:12:37 +0300 |
commit | 341e45e46bba094ef1274957ef5891f43e91b344 (patch) | |
tree | 3312feb238421605093636d92fe4b4d3db2a518d /object.h | |
parent | 346a817a7271b58811a8004fa225ab88bc94e9c3 (diff) |
object: allow create_object to handle arbitrary repositories
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
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
@@ -93,8 +93,7 @@ extern struct object *get_indexed_object(unsigned int); */ struct object *lookup_object(const unsigned char *sha1); -#define create_object(r, s, o) create_object_##r(s, o) -extern void *create_object_the_repository(const unsigned char *sha1, void *obj); +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); |