summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorArthur Schreiber <schreiber.arthur@googlemail.com>2014-01-14 21:33:59 +0100
committerArthur Schreiber <schreiber.arthur@googlemail.com>2014-01-14 21:33:59 +0100
commit529f342aba858e81f370aca9570fa149ebba674b (patch)
treed5bf7c7f67e3a5bd9537b70f16581fbbd0bfeab6 /include/git2/tree.h
parent29be3a6d9eee68b3964f34c498e64ce32452a57f (diff)
downloadlibgit2-529f342aba858e81f370aca9570fa149ebba674b.tar.gz
Align git_tree_entry_dup.
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index 422365674..6350ada9b 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -150,10 +150,11 @@ GIT_EXTERN(int) git_tree_entry_bypath(
* Create a copy of a tree entry. The returned copy is owned by the user,
* and must be freed explicitly with `git_tree_entry_free()`.
*
- * @param entry A tree entry to duplicate
- * @return a copy of the original entry or NULL on error (alloc failure)
+ * @param dest pointer where to store the copy
+ * @param entry tree entry to duplicate
+ * @return 0 or an error code
*/
-GIT_EXTERN(git_tree_entry *) git_tree_entry_dup(const git_tree_entry *entry);
+GIT_EXTERN(int) git_tree_entry_dup(git_tree_entry **dest, const git_tree_entry *source);
/**
* Free a user-owned tree entry