]>
Commit | Line | Data |
---|---|---|
bb742ede | 1 | /* |
359fc2d2 | 2 | * Copyright (C) the libgit2 contributors. All rights reserved. |
bb742ede VM |
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 | */ | |
f8758044 VM |
7 | #ifndef INCLUDE_tag_h__ |
8 | #define INCLUDE_tag_h__ | |
9 | ||
eae0bfdc PP |
10 | #include "common.h" |
11 | ||
44908fe7 | 12 | #include "git2/tag.h" |
3315782c | 13 | #include "repository.h" |
72a3fe42 | 14 | #include "odb.h" |
f8758044 VM |
15 | |
16 | struct git_tag { | |
f49a2e49 | 17 | git_object object; |
f8758044 | 18 | |
6b2a1941 | 19 | git_oid target; |
ac3d33df | 20 | git_object_t type; |
6b2a1941 | 21 | |
f8758044 | 22 | char *tag_name; |
638c2ca4 | 23 | git_signature *tagger; |
f8758044 VM |
24 | char *message; |
25 | }; | |
26 | ||
78606263 | 27 | void git_tag__free(void *tag); |
3f27127d | 28 | int git_tag__parse(void *tag, git_odb_object *obj); |
ac3d33df | 29 | int git_tag__parse_raw(void *tag, const char *data, size_t size); |
f8758044 VM |
30 | |
31 | #endif |