From 89e4202f9828c18f5db4db80a008a2a8a458855e Mon Sep 17 00:00:00 2001 From: Daniel Barkalow Date: Tue, 21 Jun 2005 20:35:10 -0400 Subject: [PATCH] Parse tags for absent objects Handle parsing a tag for a non-present object. This adds a function to lookup an object with lookup_* for * in a string, so that it can get the right storage based on the "type" line in the tag. Signed-off-by: Daniel Barkalow Signed-off-by: Linus Torvalds --- object.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'object.h') diff --git a/object.h b/object.h index ca455d5711..1bd59ac6fc 100644 --- a/object.h +++ b/object.h @@ -21,8 +21,12 @@ struct object { extern int nr_objs; extern struct object **objs; +/** Internal only **/ struct object *lookup_object(const unsigned char *sha1); +/** Returns the object, having looked it up as being the given type. **/ +struct object *lookup_object_type(const unsigned char *sha1, const char *type); + void created_object(const unsigned char *sha1, struct object *obj); /** Returns the object, having parsed it to find out what it is. **/ -- cgit v1.2.1