git_filter_check_fn

Callback to decide if a given source needs this filter

Specified as filter.check, this is an optional callback that checks if filtering is needed for a given source.

It should return 0 if the filter should be applied (i.e. success), git_error_code.GIT_PASSTHROUGH if the filter should not be applied, or an error code to fail out of the filter processing pipeline and return to the caller.

The attr_values will be set to the values of any attributes given in the filter definition. See git_filter below for more detail.

The payload will be a pointer to a reference payload for the filter. This will start as null, but check can assign to this pointer for later use by the apply callback. Note that the value should be heap allocated (not stack), so that it doesn't go away before the apply callback can use it. If a filter allocates and assigns a value to the payload, it will need a cleanup callback to free the payload.

package extern (C) nothrow @nogc
alias git_filter_check_fn = int function
(,
void** payload
,,
const(char)** attr_values
)

Meta