git_treebuilder_filter

Selectively remove 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 non-zero, the entry will be filtered (removed from the builder).

extern (C) nothrow @nogc
int
git_treebuilder_filter

Parameters

bld libgit2_d.types.git_treebuilder*

Tree builder

filter .git_treebuilder_filter_cb

Callback to filter entries

payload void*

Extra data to pass to filter callback

Return Value

Type: int

0 on success, non-zero callback return value, or error code

Meta