summaryrefslogtreecommitdiff
path: root/include/git2/pack.h
diff options
context:
space:
mode:
authorXavier L <xavier.l@afrosoft.ca>2013-04-23 12:22:29 -0400
committerXavier L <xavier.l@afrosoft.ca>2013-04-23 12:22:29 -0400
commitf0e37a8b863c2e6caba2b15e4d723bddfe74b46c (patch)
tree6c9f2fbb91205fd0ddf3e59a111c2d1ed8f0a388 /include/git2/pack.h
parent6c1b6b7abcef75d421e4d59c397eff54cc1f28aa (diff)
downloadlibgit2-f0e37a8b863c2e6caba2b15e4d723bddfe74b46c.tar.gz
Added function to insert commit into pack
Diffstat (limited to 'include/git2/pack.h')
-rw-r--r--include/git2/pack.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/git2/pack.h b/include/git2/pack.h
index 2f033bef6..118b8d554 100644
--- a/include/git2/pack.h
+++ b/include/git2/pack.h
@@ -95,6 +95,18 @@ GIT_EXTERN(int) git_packbuilder_insert(git_packbuilder *pb, const git_oid *id, c
GIT_EXTERN(int) git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *id);
/**
+ * Insert a commit object
+ *
+ * This will add a commit as well as the completed referenced tree.
+ *
+ * @param pb The packbuilder
+ * @param id The oid of the commit
+ *
+ * @return 0 or an error code
+ */
+GIT_EXTERN(int) git_packbuilder_insert_commit(git_packbuilder *pb, const git_oid *id);
+
+/**
* Write the new pack and the corresponding index to path
*
* @param pb The packbuilder