summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-12-16 19:24:04 -0600
committerEdward Thomson <ethomson@edwardthomson.com>2014-12-17 13:05:27 -0500
commitdce7b1a4e75551804a33591744d40d0582c57cfb (patch)
treefe3d7175cc770d1d3940a3d90672913817f5bc51 /include/git2/tree.h
parentec74b40ceef3dc3892c7d84bb4f5d99bab504ba4 (diff)
downloadlibgit2-dce7b1a4e75551804a33591744d40d0582c57cfb.tar.gz
treebuilder: take a repository for path validation
Path validation may be influenced by `core.protectHFS` and `core.protectNTFS` configuration settings, thus treebuilders can take a repository to influence their configuration.
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 42b68193e..0f7616210 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -247,11 +247,12 @@ GIT_EXTERN(int) git_tree_entry_to_object(
* entries and will have to be filled manually.
*
* @param out Pointer where to store the tree builder
+ * @param repo Repository in which to store the object
* @param source Source tree to initialize the builder (optional)
* @return 0 on success; error code otherwise
*/
GIT_EXTERN(int) git_treebuilder_create(
- git_treebuilder **out, const git_tree *source);
+ git_treebuilder **out, git_repository *repo, const git_tree *source);
/**
* Clear all the entires in the builder
@@ -368,12 +369,11 @@ GIT_EXTERN(void) git_treebuilder_filter(
* identifying SHA1 hash will be stored in the `id` pointer.
*
* @param id Pointer to store the OID of the newly written tree
- * @param repo Repository in which to store the object
* @param bld Tree builder to write
* @return 0 or an error code
*/
GIT_EXTERN(int) git_treebuilder_write(
- git_oid *id, git_repository *repo, git_treebuilder *bld);
+ git_oid *id, git_treebuilder *bld);
/** Callback for the tree traversal method */