diff options
author | Russell Belfer <rb@github.com> | 2013-04-30 01:22:06 +0400 |
---|---|---|
committer | Russell Belfer <rb@github.com> | 2013-04-30 01:22:06 +0400 |
commit | d77611022c4a43d5e67cf52ce2bc2b11ee5bcdc0 (patch) | |
tree | d59b9eb5648f5603db6e68c0cefd14ce7049e8e5 /src/tag.c | |
parent | b7f167da29effa125663b143d3daf79a6ad88d2e (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.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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); |