summaryrefslogtreecommitdiff
path: root/include/git2/tree.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-11-22 02:10:41 +0100
committerVicent Marti <tanoku@gmail.com>2011-11-22 02:10:41 +0100
commit2744806f32c895feb2ec241320d2b64ae58e992c (patch)
tree4187bd8a555a120f037de35a8501684b469e70b0 /include/git2/tree.h
parentbf038dab30df4cf82382c0b5a123b0f403b2c3a9 (diff)
downloadlibgit2-2744806f32c895feb2ec241320d2b64ae58e992c.tar.gz
tree: Fix documentation
Diffstat (limited to 'include/git2/tree.h')
-rw-r--r--include/git2/tree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/tree.h b/include/git2/tree.h
index bd89de34f..8ac8b1682 100644
--- a/include/git2/tree.h
+++ b/include/git2/tree.h
@@ -308,9 +308,10 @@ enum git_treewalk_mode {
* @param tree The tree to walk
* @param callback Function to call on each tree entry
* @param mode Traversal mode (pre or post-order)
+ * @param payload Opaque pointer to be passed on each callback
* @return GIT_SUCCESS or an error code
*/
-GIT_EXTERN(int) git_tree_walk(git_tree *walk, git_treewalk_cb callback, int mode, void *payload);
+GIT_EXTERN(int) git_tree_walk(git_tree *tree, git_treewalk_cb callback, int mode, void *payload);
/** @} */
GIT_END_DECL