libgit2

git_treewalk_cb

Version:

Callback for the tree traversal method.

Signature

typedef int git_treewalk_cb(const char *root, const git_tree_entry *entry, void *payload);

Parameters

const char *
In
root

the current (relative) root to the entry

In
entry

the tree entry

void *
In
payload

the caller-provided callback payload

Returns

int

a positive value to skip the entry, a negative value to stop the walk

Parameter To

Versions