mirror of
https://git.zx2c4.com/cgit
synced 2025-07-08 17:24:33 +02:00
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:
parent
ce1c7336e5
commit
8fb2f05696
2 changed files with 37 additions and 19 deletions
4
git.h
4
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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue