path: root/object.h
diff options
authorDaniel Barkalow <>2005-06-22 00:35:10 (GMT)
committerLinus Torvalds <>2005-06-22 01:29:12 (GMT)
commit89e4202f9828c18f5db4db80a008a2a8a458855e (patch)
tree18d3bfddecf89de84930ddb66aedc37e9cbd56a7 /object.h
parent9661c256400d1a17a27e014592f887359f74707e (diff)
[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 <>
Diffstat (limited to 'object.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/object.h b/object.h
index ca455d5..1bd59ac 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. **/