summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-05-18 16:52:16 +0200
committernulltoken <emeric.fermas@gmail.com>2013-05-21 19:32:59 +0200
commitb81cc1d63bb42dde993979cda49550d2c224d9ed (patch)
tree0df1056d64b59f7a3b055d3cb058edd8397c9ad8 /src
parent5b3d52ce37100c1d63229d195041fac3e6f89d28 (diff)
downloadlibgit2-b81cc1d63bb42dde993979cda49550d2c224d9ed.tar.gz
tag: Introduce git_tag_annotation_create()
Diffstat (limited to 'src')
-rw-r--r--src/tag.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index f81956de7..ecf3876cb 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -291,6 +291,19 @@ int git_tag_create(
return git_tag_create__internal(oid, repo, tag_name, target, tagger, message, allow_ref_overwrite, 1);
}
+int git_tag_annotation_create(
+ git_oid *oid,
+ git_repository *repo,
+ const char *tag_name,
+ const git_object *target,
+ const git_signature *tagger,
+ const char *message)
+{
+ assert(oid && repo && tag_name && target && tagger && message);
+
+ return write_tag_annotation(oid, repo, tag_name, target, tagger, message);
+}
+
int git_tag_create_lightweight(
git_oid *oid,
git_repository *repo,