Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-03-28 15:59:48 +0400
committerCarlos Martín Nieto <cmn@elego.de>2011-03-28 15:59:48 +0400
commit7b4a16e2c8869ba18264d0c44996880c8f9bb095 (patch)
treee3012c9af02032f8121dfeaa4e9b7242633d8bdf /include/git2/tag.h
parentc15e0db5a9f259e782cf49e50dd1109548bab1fa (diff)
Add git_tag_create_frombuffer API
Expose the tag parsing capabilities already present in the library. Exporting this function makes it possible to implement the mktag command without duplicating this functionality. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2/tag.h')
-rw-r--r--include/git2/tag.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/git2/tag.h b/include/git2/tag.h
index ee92cd5c2..c47e3412c 100644
--- a/include/git2/tag.h
+++ b/include/git2/tag.h
@@ -188,6 +188,20 @@ GIT_EXTERN(int) git_tag_create_o(
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
+ *
+ * @param repo Repository where to store the tag
+ *
+ * @param buffer Raw tag data
+ */
+GIT_EXTERN(int) git_tag_create_frombuffer(
+ git_oid *oid,
+ git_repository *repo,
+ const char *buffer);
+
/** @} */
GIT_END_DECL
#endif