libgit2

git_filter_stream_fn

Version:

Callback to perform the data filtering.

Specified as filter.stream, this is a callback that filters data in a streaming manner. This function will provide a git_writestream that will the original data will be written to; with that data, the git_writestream will then perform the filter translation and stream the filtered data out to the next location.

Signature

typedef int git_filter_stream_fn(git_writestream **out, git_filter *self, void **payload, const git_filter_source *src, git_writestream *next);

Parameters

In
out

the write stream

In
self

the filter

void **
In
payload

a data for future filter functions

In
src

the filter source

In
next

the output stream

Returns

int

0 on success or a negative value on error

Versions