libgit2

git_treebuilder_filter

Version:

Filter the entries in the tree

The filter callback will be called for each entry in the tree with a pointer to the entry and the provided payload: if the callback returns 1, the entry will be filtered (removed from the builder).

Signature

void git_treebuilder_filter(git_treebuilder *bld, int (*)(const git_tree_entry *, void *) filter, void *payload);

Parameters

In
bld

Tree builder

int (*)(const git_tree_entry *, void *)
In
filter

Callback to filter entries

void *
In
payload

Versions