Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tag.c
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-04-30 01:22:06 +0400
committerRussell Belfer <rb@github.com>2013-04-30 01:22:06 +0400
commitd77611022c4a43d5e67cf52ce2bc2b11ee5bcdc0 (patch)
treed59b9eb5648f5603db6e68c0cefd14ce7049e8e5 /src/tag.c
parentb7f167da29effa125663b143d3daf79a6ad88d2e (diff)
Standardize cast versions of git_object accessors
This removes the GIT_INLINE versions of the simple git_object accessors and standardizes them with a helper macro in src/object.h to build the function bodies.
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tag.c b/src/tag.c
index b9a806cd1..ad3a8fd36 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -15,6 +15,8 @@
#include "git2/signature.h"
#include "git2/odb_backend.h"
+GIT_OBJ_WRAPPER(git_tag, GIT_OBJ_TAG)
+
void git_tag__free(void *_tag)
{
git_tag *tag = _tag;
@@ -24,11 +26,6 @@ void git_tag__free(void *_tag)
git__free(tag);
}
-const git_oid *git_tag_id(const git_tag *c)
-{
- return git_object_id((const git_object *)c);
-}
-
int git_tag_target(git_object **target, const git_tag *t)
{
assert(t);