diff options
| author | Ben Straub <bs@github.com> | 2013-05-21 10:49:36 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2013-05-21 10:49:36 -0700 |
| commit | 6828bf26e9e370af57d7724fe1dac9a24ac552a8 (patch) | |
| tree | e9e8eef327f9fbd9c16711f255293032fa7d3be7 /include/git2 | |
| parent | e167ec18971eb56199666d952ba79f4f5e883418 (diff) | |
| parent | b81cc1d63bb42dde993979cda49550d2c224d9ed (diff) | |
| download | libgit2-6828bf26e9e370af57d7724fe1dac9a24ac552a8.tar.gz | |
Merge pull request #1594 from nulltoken/topic/tag_annotation
tag: Introduce git_tag_annotation_create()
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/tag.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/git2/tag.h b/include/git2/tag.h index 469b1d72b..c822cee7c 100644 --- a/include/git2/tag.h +++ b/include/git2/tag.h @@ -178,6 +178,37 @@ GIT_EXTERN(int) git_tag_create( int force); /** + * Create a new tag in the object database pointing to a git_object + * + * The message will not be cleaned up. This can be achieved + * through `git_message_prettify()`. + * + * @param oid Pointer where to store the OID of the + * newly created tag + * + * @param repo Repository where to store the tag + * + * @param tag_name Name for the tag + * + * @param target Object to which this tag points. This object + * must belong to the given `repo`. + * + * @param tagger Signature of the tagger for this tag, and + * of the tagging time + * + * @param message Full message for this tag + * + * @return 0 on success or an error code + */ +GIT_EXTERN(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); + +/** * Create a new tag in the repository from a buffer * * @param oid Pointer where to store the OID of the newly created tag |
