diff options
| author | nulltoken <emeric.fermas@gmail.com> | 2011-03-30 23:26:36 +0200 |
|---|---|---|
| committer | nulltoken <emeric.fermas@gmail.com> | 2011-03-30 23:26:36 +0200 |
| commit | 9e680bcc002af8f230bfce8dbfee3fef4001fb38 (patch) | |
| tree | a978a073261a58751ffd6c93d3173d6ac8278028 /include | |
| parent | a50c145855598b53463c3715f399cd5ebf27240d (diff) | |
| download | libgit2-9e680bcc002af8f230bfce8dbfee3fef4001fb38.tar.gz | |
Add git_tag_delete()
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/tag.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/tag.h b/include/git2/tag.h index 6468cfdd7..1ee1e0cc4 100644 --- a/include/git2/tag.h +++ b/include/git2/tag.h @@ -247,6 +247,20 @@ GIT_EXTERN(int) git_tag_create_o_f( const git_signature *tagger, const char *message); +/** +* Delete an existing tag reference. +* +* @param repo Repository where lives the tag +* +* @param tag_name Name of the tag to be deleted; +* this name is validated for consistency. +* +* @return 0 on success; error code otherwise. +*/ +GIT_EXTERN(int) git_tag_delete( + git_repository *repo, + const char *tag_name); + /** @} */ GIT_END_DECL #endif |
