summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorDavid Glesser <glesserd@ensimag.fr>2011-05-30 09:03:55 +0200
committerDavid Glesser <glesserd@ensimag.fr>2011-05-30 09:03:55 +0200
commit23123151e035f3565f7c9c93c1bbdb56c7cd6914 (patch)
treeadb27592c2705af3c655d5dce7100aa165b656fa /include/git2
parent448c4d012b9237541377d8d82684644c8a331902 (diff)
downloadlibgit2-23123151e035f3565f7c9c93c1bbdb56c7cd6914.tar.gz
Set the oid when a tag already exists.
When a tag already exists, it can be useful to directly have the oid of the existed tag, just after trying to add it.
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/tag.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/tag.h b/include/git2/tag.h
index 3fc6b4499..086e4a6ca 100644
--- a/include/git2/tag.h
+++ b/include/git2/tag.h
@@ -135,7 +135,9 @@ GIT_EXTERN(const char *) git_tag_message(git_tag *t);
* Create a new tag in the repository from an OID
*
* @param oid Pointer where to store the OID of the
- * newly created tag
+ * newly created tag. If the tag already exists, this parameter
+ * will be the oid of the existed tag, and the function will
+ * return a GIT_EEXISTS error code.
*
* @param repo Repository where to store the tag
*