libgit2

git_filter_list_apply_to_buffer

Version:

Apply filter list to a data buffer.

Signature

int git_filter_list_apply_to_buffer(git_buf *out, git_filter_list *filters, const char *in, size_t in_len);

Parameters

In
out

Buffer to store the result of the filtering

In
filters

A loaded git_filter_list (or NULL)

const char *
In
in

Buffer containing the data to filter

size_t
In
in_len

The length of the input buffer

Returns

int

0 on success, an error code otherwise

Versions