tag.h 618 Bytes
Newer Older
Vicent Marti committed
1
/*
schu committed
2
 * Copyright (C) 2009-2012 the libgit2 contributors
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
#include "git2/tag.h"
11
#include "repository.h"
Vicent Marti committed
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 23 24 25
	char *message;
};

void git_tag__free(git_tag *tag);
Vicent Marti committed
26
int git_tag__parse(git_tag *tag, git_odb_object *obj);
27
int git_tag__parse_buffer(git_tag *tag, const char *data, size_t len);
28 29

#endif