libgit2

git_filter_list_push

Version:

Add a filter to a filter list with the given payload.

Normally you won't have to do this because the filter list is created by calling the "check" function on registered filters when the filter attributes are set, but this does allow more direct manipulation of filter lists when desired.

Note that normally the "check" function can set up a payload for the filter. Using this function, you can either pass in a payload if you know the expected payload format, or you can pass NULL. Some filters may fail with a NULL payload. Good luck!

Signature

int git_filter_list_push(git_filter_list *fl, git_filter *filter, void *payload);

Parameters

In
fl

the filter list

In
filter

the filter to push

void *
In
payload

the payload for the filter

Returns

int

0 on success or an error code

Versions