]> git.proxmox.com Git - libgit2.git/blob - src/tag.h
Merge pull request #399 from carlosmn/free-null
[libgit2.git] / src / tag.h
1 /*
2 * Copyright (C) 2009-2011 the libgit2 contributors
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7 #ifndef INCLUDE_tag_h__
8 #define INCLUDE_tag_h__
9
10 #include "git2/tag.h"
11 #include "repository.h"
12 #include "odb.h"
13
14 struct git_tag {
15 git_object object;
16
17 git_oid target;
18 git_otype type;
19
20 char *tag_name;
21 git_signature *tagger;
22 char *message;
23 };
24
25 void git_tag__free(git_tag *tag);
26 int git_tag__parse(git_tag *tag, git_odb_object *obj);
27
28 #endif