diff options
author | Daniel Barkalow <barkalow@iabervon.org> | 2005-06-21 20:35:10 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-21 18:29:12 -0700 |
commit | 89e4202f9828c18f5db4db80a008a2a8a458855e (patch) | |
tree | 18d3bfddecf89de84930ddb66aedc37e9cbd56a7 /object.h | |
parent | 9661c256400d1a17a27e014592f887359f74707e (diff) | |
download | git-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. **/ |