diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-02-04 22:55:19 +0100 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-02-04 22:55:19 +0100 |
commit | 8fb2f056961e577a039ae185d89ab8e2d2840b9e (patch) | |
tree | a009aca3c52dd134faa48181daede79bd930f9a4 /git.h | |
parent | ce1c7336e5b3e3ebe8f8c9029c405aedec98c208 (diff) | |
download | cgit-8fb2f056961e577a039ae185d89ab8e2d2840b9e.tar.gz cgit-8fb2f056961e577a039ae185d89ab8e2d2840b9e.tar.xz |
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>
Diffstat (limited to 'git.h')
-rw-r--r-- | git.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |