Add support for lightweight tags

There is nothing bad about a tag that has no tag-object, but the old code
didn't handle such tags correctly. Fix it.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli 2007-02-04 22:55:19 +01:00
parent ce1c7336e5
commit 8fb2f05696
2 changed files with 37 additions and 19 deletions

4
git.h
View file

@ -278,6 +278,10 @@ struct object {
};
/** Returns the object, having parsed it to find out what it is. **/
struct object *parse_object(const unsigned char *sha1);
/*
* from git:tree.h
*/