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>
This commit is contained in:
committed by
Junio C Hamano
parent
346a817a72
commit
341e45e46b
3
object.h
3
object.h
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user