libgit2_d.sys.filter

Undocumented in source.

Members

Aliases

git_filter_apply_fn
alias git_filter_apply_fn = int function(.git_filter* self, void** payload, libgit2_d.buffer.git_buf* to, const(libgit2_d.buffer.git_buf)* from, const(.git_filter_source)* src)

Callback to actually perform the data filtering

git_filter_check_fn
alias git_filter_check_fn = int function(.git_filter* self, void** payload, const(.git_filter_source)* src, const(char)** attr_values)

Callback to decide if a given source needs this filter

git_filter_cleanup_fn
alias git_filter_cleanup_fn = void function(.git_filter* self, void* payload)

Callback to clean up after filtering has been applied

git_filter_init_fn
alias git_filter_init_fn = int function(.git_filter* self)

Initialize callback on filter

git_filter_shutdown_fn
alias git_filter_shutdown_fn = void function(.git_filter* self)

Shutdown callback on filter

git_filter_stream_fn
alias git_filter_stream_fn = int function(libgit2_d.types.git_writestream** out_, .git_filter* self, void** payload, const(.git_filter_source)* src, libgit2_d.types.git_writestream* next)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Functions

GIT_FILTER_INIT
GIT_FILTER_INIT()
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_filter_init
int git_filter_init(.git_filter* filter, uint version_)

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

git_filter_list_length
size_t git_filter_list_length(const(libgit2_d.filter.git_filter_list)* fl)

Look up how many filters are in the list

git_filter_list_new
int git_filter_list_new(libgit2_d.filter.git_filter_list** out_, libgit2_d.types.git_repository* repo, libgit2_d.filter.git_filter_mode_t mode, uint options)

Create a new empty filter list

git_filter_list_push
int git_filter_list_push(libgit2_d.filter.git_filter_list* fl, .git_filter* filter, void* payload)

Add a filter to a filter list with the given payload.

git_filter_lookup
.git_filter* git_filter_lookup(const(char)* name)

Look up a filter by name

git_filter_register
int git_filter_register(const(char)* name, .git_filter* filter, int priority)

Register a filter under a given name with a given priority.

git_filter_source_filemode
ushort git_filter_source_filemode(const(.git_filter_source)* src)

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

git_filter_source_flags
uint git_filter_source_flags(const(.git_filter_source)* src)

Get the combination git_filter_flag_t options to be applied

git_filter_source_id
const(libgit2_d.oid.git_oid)* git_filter_source_id(const(.git_filter_source)* src)

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

git_filter_source_mode
libgit2_d.filter.git_filter_mode_t git_filter_source_mode(const(.git_filter_source)* src)

Get the git_filter_mode_t to be used

git_filter_source_path
const(char)* git_filter_source_path(const(.git_filter_source)* src)

Get the path that the source data is coming from.

git_filter_source_repo
libgit2_d.types.git_repository* git_filter_source_repo(const(.git_filter_source)* src)

Get the repository that the source data is coming from.

git_filter_unregister
int git_filter_unregister(const(char)* name)

Remove the filter with the given name

Manifest constants

GIT_FILTER_CRLF
enum GIT_FILTER_CRLF;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_FILTER_CRLF_PRIORITY
enum GIT_FILTER_CRLF_PRIORITY;

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

GIT_FILTER_DRIVER_PRIORITY
enum GIT_FILTER_DRIVER_PRIORITY;

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. You do not have to use this, but it helps compatibility.

GIT_FILTER_IDENT
enum GIT_FILTER_IDENT;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_FILTER_IDENT_PRIORITY
enum GIT_FILTER_IDENT_PRIORITY;

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

GIT_FILTER_VERSION
enum GIT_FILTER_VERSION;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Structs

git_filter
struct git_filter

Filter structure used to register custom filters.

git_filter_source
struct git_filter_source

A filter source represents a file/blob to be processed

Meta