git_filter_list_load

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
int
git_filter_list_load

Parameters

filters .git_filter_list**

Output newly created git_filter_list (or null)

repo libgit2_d.types.git_repository*

Repository object that contains path

blob libgit2_d.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)

flags uint

Combination of git_filter_flag_t flags

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