libgit2

filter

Version:
Git filter backend and plugin routines

Objects

A filter source represents a file/blob to be processed

Structs

Filter structure used to register custom filters

Macros

This is priority that the internal CRLF filter will be registered with

This is priority that the internal ident filter will be registered with

This is priority to use with a custom filter to imitate a core Git filter driver, so that it will be run last on checkout and first on checkin

Callbacks

Initialize callback on filter

Shutdown callback on filter

Callback to decide if a given source needs this filter

Callback to actually perform the data filtering

Callback to clean up after filtering has been applied

Functions

Look up a filter by name

Create a new empty filter list

Add a filter to a filter list with the given payload

Look up how many filters are in the list

Get the repository that the source data is coming from

Get the path that the source data is coming from

Get the file mode of the source file If the mode is unknown, this will return 0

Get the OID of the source If the OID is unknown (often the case with GIT_FILTER_CLEAN) then this will return NULL

Get the git_filter_mode_t to be used

Get the combination git_filter_flag_t options to be applied

Register a filter under a given name with a given priority

Remove the filter with the given name