tag.h 574 Bytes
Newer Older
Vicent Marti committed
1
/*
Edward Thomson committed
2
 * Copyright (C) the libgit2 contributors. All rights reserved.
Vicent Marti committed
3 4 5 6
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */
7 8 9
#ifndef INCLUDE_tag_h__
#define INCLUDE_tag_h__

10 11
#include "common.h"

12
#include "git2/tag.h"
13
#include "repository.h"
Vicent Marti committed
14
#include "odb.h"
15 16

struct git_tag {
17
	git_object object;
18

19
	git_oid target;
20
	git_otype type;
21

22
	char *tag_name;
23
	git_signature *tagger;
24 25 26
	char *message;
};

27
void git_tag__free(void *tag);
28
int git_tag__parse(void *tag, git_odb_object *obj);
29 30

#endif