libgit2

git_filter_list_apply_to_file

Version:

Apply a filter list to the contents of a file on disk

Signature

int git_filter_list_apply_to_file(git_buf *out, git_filter_list *filters, git_repository *repo, const char *path);

Parameters

In
out

buffer into which to store the filtered file

In
filters

the list of filters to apply

In
repo

the repository in which to perform the filtering

const char *
In
path

the path of the file to filter, a relative path will be taken as relative to the workdir

Returns

int

0 or an error code.

Versions