libgit2_d.filter

Undocumented in source.

Members

Aliases

git_filter
alias git_filter = libgit2_d.sys.filter.git_filter

A filter that can transform file data

Enums

git_filter_flag_t
enum git_filter_flag_t

Filter option flags.

git_filter_mode_t
enum git_filter_mode_t

Filters are applied in one of two directions: smudging - which is exporting a file from the Git object database to the working directory, and cleaning - which is importing a file from the working directory to the Git object database. These values control which direction of change is being applied.

Functions

git_filter_list_apply_to_blob
int git_filter_list_apply_to_blob(libgit2_d.buffer.git_buf* out_, .git_filter_list* filters, libgit2_d.types.git_blob* blob)

Apply a filter list to the contents of a blob

git_filter_list_apply_to_data
int git_filter_list_apply_to_data(libgit2_d.buffer.git_buf* out_, .git_filter_list* filters, libgit2_d.buffer.git_buf* in_)

Apply filter list to a data buffer.

git_filter_list_apply_to_file
int git_filter_list_apply_to_file(libgit2_d.buffer.git_buf* out_, .git_filter_list* filters, libgit2_d.types.git_repository* repo, const(char)* path)

Apply a filter list to the contents of a file on disk

git_filter_list_contains
int git_filter_list_contains(.git_filter_list* filters, const(char)* name)

Query the filter list to see if a given filter (by name) will run. The built-in filters "crlf" and "ident" can be queried, otherwise this is the name of the filter specified by the filter attribute.

git_filter_list_free
void git_filter_list_free(.git_filter_list* filters)

Free a git_filter_list

git_filter_list_load
int git_filter_list_load(.git_filter_list** filters, libgit2_d.types.git_repository* repo, libgit2_d.types.git_blob* blob, const(char)* path, .git_filter_mode_t mode, uint flags)

Load the filter list for a given path.

git_filter_list_stream_blob
int git_filter_list_stream_blob(.git_filter_list* filters, libgit2_d.types.git_blob* blob, libgit2_d.types.git_writestream* target)

Apply a filter list to a blob as a stream

git_filter_list_stream_data
int git_filter_list_stream_data(.git_filter_list* filters, libgit2_d.buffer.git_buf* data, libgit2_d.types.git_writestream* target)

Apply a filter list to an arbitrary buffer as a stream

git_filter_list_stream_file
int git_filter_list_stream_file(.git_filter_list* filters, libgit2_d.types.git_repository* repo, const(char)* path, libgit2_d.types.git_writestream* target)

Apply a filter list to a file as a stream

Structs

git_filter_list
struct git_filter_list

List of filters to be applied

Meta