X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=object.h;h=09700d376077b2d6136620faf6efb77ee679deeb;hb=2a45925180152b3e54248de4d7f69e8cc5c4051f;hp=bc607fd55f6ce4e56ce87766369b5d4d55ec79af;hpb=b51ad4314078298194d23d46e2b4473ffd32a88a;p=git.git diff --git a/object.h b/object.h index bc607fd5..09700d37 100644 --- a/object.h +++ b/object.h @@ -15,13 +15,16 @@ struct object { struct object_list *refs; }; -int nr_objs; -struct object **objs; +extern int nr_objs; +extern struct object **objs; struct object *lookup_object(unsigned char *sha1); void created_object(unsigned char *sha1, struct object *obj); +/** Returns the object, having parsed it to find out what it is. **/ +struct object *parse_object(unsigned char *sha1); + void add_ref(struct object *refer, struct object *target); void mark_reachable(struct object *obj, unsigned int mask);