X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=object.h;h=d53a35a4d7321b5ec970103208ac576f9f722dff;hb=ed4eeaf203d0f293bd5ffc2a0ad8711f052db1f3;hp=bc607fd55f6ce4e56ce87766369b5d4d55ec79af;hpb=b51ad4314078298194d23d46e2b4473ffd32a88a;p=git.git diff --git a/object.h b/object.h index bc607fd5..d53a35a4 100644 --- a/object.h +++ b/object.h @@ -22,6 +22,9 @@ 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);