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 | Read repo-info from /etc/cgitrc (diff) | |
download | cgit-pink-8fb2f056961e577a039ae185d89ab8e2d2840b9e.tar.gz cgit-pink-8fb2f056961e577a039ae185d89ab8e2d2840b9e.zip |
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 '')
-rw-r--r-- | git.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/git.h b/git.h index 991eaa5..eca48d5 100644 --- a/git.h +++ b/git.h @@ -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 */ |