summaryrefslogtreecommitdiff
path: root/object.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2005-06-21 20:35:10 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-21 18:29:12 -0700
commit89e4202f9828c18f5db4db80a008a2a8a458855e (patch)
tree18d3bfddecf89de84930ddb66aedc37e9cbd56a7 /object.h
parent9661c256400d1a17a27e014592f887359f74707e (diff)
downloadgit-89e4202f9828c18f5db4db80a008a2a8a458855e.tar.gz
[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>
Diffstat (limited to 'object.h')
-rw-r--r--object.h4
1 files changed, 4 insertions, 0 deletions
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. **/