libgit2

git_filter_cleanup_fn

Version:

Callback to clean up after filtering has been applied

Specified as filter.cleanup, this is an optional callback invoked after the filter has been applied. If the check, apply, or stream callbacks allocated a payload to keep per-source filter state, use this callback to free that payload and release resources as required.

Signature

typedef void git_filter_cleanup_fn(git_filter *self, void *payload);

Parameters

In
self

the filter

void *
In
payload

a data for future filter functions

Versions