libgit2

git_filter_list_new

Version:

Create a new empty filter list

Normally you won't use this because git_filter_list_load will create the filter list for you, but you can use this in combination with the git_filter_lookup and git_filter_list_push functions to assemble your own chains of filters.

Signature

int git_filter_list_new(git_filter_list **out, git_repository *repo, git_filter_mode_t mode, uint32_t options);

Parameters

In
out

the filter list

In
repo

the repository to use for configuration

In
mode

the filter mode (direction)

uint32_t
In
options

the options

Returns

int

0 on success or an error code

Versions