libgit2

git_filter_init

Version:

Initializes a git_filter with default values. Equivalent to creating an instance with GIT_FILTER_INIT.

Signature

int git_filter_init(git_filter *filter, unsigned int version);

Parameters

In
filter

the git_filter struct to initialize.

unsigned int
In
version

Version the struct; pass GIT_FILTER_VERSION

Returns

int

0 on success; -1 on failure.

Versions