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).
the payload from the caller
0 to do nothing, non-zero to remove the entry