git_filter_list_load_ext

Load the filter list for a given path.

This will return 0 (success) but set the output git_filter_list to null if no filters are requested for the given file.

extern (C) nothrow @nogc public
int
git_filter_list_load_ext

Parameters

filters .git_filter_list**

Output newly created git_filter_list (or null)

repo libgit2.types.git_repository*

Repository object that contains path

blob libgit2.types.git_blob*

The blob to which the filter will be applied (if known)

path const(char)*

Relative path of the file to be filtered

mode .git_filter_mode_t

Filtering direction (WT->ODB or ODB->WT)

opts .git_filter_options*

The git_filter_options to use when loading filters

Return Value

Type: int

0 on success (which could still return null if no filters are needed for the requested file), <0 on error

Meta