1 /* 2 * Copyright (C) the libgit2 contributors. All rights reserved. 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 "common.h" 11 12 #include "git2/tag.h" 13 #include "repository.h" 14 #include "odb.h" 15 16 struct git_tag { 17 git_object object; 18 19 git_oid target; 20 git_object_t type; 21 22 char *tag_name; 23 git_signature *tagger; 24 char *message; 25 }; 26 27 void git_tag__free(void *tag); 28 int git_tag__parse(void *tag, git_odb_object *obj); 29 int git_tag__parse_raw(void *tag, const char *data, size_t size); 30 31 #endif 32