summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2012-11-01 20:15:53 +0100
committerVicent Marti <tanoku@gmail.com>2012-11-01 20:17:10 +0100
commit276ea401b3a45c85e49182f39db00ca5447aa340 (patch)
treed13f81a763fb4be23044aa2210fcc81aadb095ff /src/tree.h
parent8ff0f3250a62a128fb68ce3fae1719549a3fe47a (diff)
downloadlibgit2-276ea401b3a45c85e49182f39db00ca5447aa340.tar.gz
index: Add git_index_write_tree
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tree.h b/src/tree.h
index 24b517ce3..b67c55202 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -47,6 +47,12 @@ int git_tree__parse(git_tree *tree, git_odb_object *obj);
*/
int git_tree__prefix_position(git_tree *tree, const char *prefix);
+
+/**
+ * Write a tree to the given repository
+ */
+int git_tree__write_index(git_oid *oid, git_index *index, git_repository *repo);
+
/**
* Obsolete mode kept for compatibility reasons
*/