libgit2

git_treebuilder_filter_cb

Version:

Callback for git_treebuilder_filter

The return value is treated as a boolean, with zero indicating that the entry should be left alone and any non-zero value meaning that the entry should be removed from the treebuilder list (i.e. filtered out).

Signature

typedef int git_treebuilder_filter_cb(const git_tree_entry *entry, void *payload);

Parameters

In
entry

the tree entry for the callback to examine

void *
In
payload

the payload from the caller

Returns

int

0 to do nothing, non-zero to remove the entry

Parameter To

Versions