summaryrefslogtreecommitdiff
path: root/src/git
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2010-10-07 00:20:08 +0300
committerVicent Marti <tanoku@gmail.com>2010-10-07 00:20:08 +0300
commitec25391dbb5ee6800b48362deadd73599701224f (patch)
tree3d827e1f427ff393d56dfff68a8fa7ee7c2e093b /src/git
parentc4b5bedc972d9238db5d6422bc6f4de35b4b67ed (diff)
downloadlibgit2-ec25391dbb5ee6800b48362deadd73599701224f.tar.gz
Add write-back support for Tag files
Tag files can now be created and modified in-memory (all the setter methods have been implemented), and written back to disk using the generic git_object_write() method. Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git')
-rw-r--r--src/git/tag.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/git/tag.h b/src/git/tag.h
index 33e3d6f26..aa232128b 100644
--- a/src/git/tag.h
+++ b/src/git/tag.h
@@ -83,6 +83,34 @@ GIT_EXTERN(const git_person *) git_tag_tagger(git_tag *t);
*/
GIT_EXTERN(const char *) git_tag_message(git_tag *t);
+/**
+ * Set the target of a tag (i.e. the object that the tag points to)
+ * @param tag The tag to modify
+ * @param target the new tagged target
+ */
+GIT_EXTERN(void) git_tag_set_target(git_tag *tag, git_object *target);
+
+/**
+ * Set the name of a tag
+ * @param tag The tag to modify
+ * @param name the new name for the tag
+ */
+GIT_EXTERN(void) git_tag_set_name(git_tag *tag, const char *name);
+
+/**
+ * Set the tagger of a tag
+ * @param tag The tag to modify
+ * @param tagger the new tagger for the tag
+ */
+GIT_EXTERN(void) git_tag_set_tagger(git_tag *tag, const git_person *tagger);
+
+/**
+ * Set the message of a tag
+ * @param tag The tag to modify
+ * @param message the new tagger for the tag
+ */
+GIT_EXTERN(void) git_tag_set_message(git_tag *tag, const char *message);
+
/** @} */
GIT_END_DECL
#endif