[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 <barkalow@iabervon.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
9661c25640
commit
89e4202f98
4
object.h
4
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. **/
|
||||
|
Reference in New Issue
Block a user