libgit2.filter

Members

Aliases

git_filter
alias git_filter = libgit2.sys.filter.git_filter

A filter that can transform file data

Enums

GIT_FILTER_DEFAULT
anonymousenum GIT_FILTER_DEFAULT
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_FILTER_TO_WORKTREE
anonymousenum GIT_FILTER_TO_WORKTREE
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
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_OPTIONS_INIT
GIT_FILTER_OPTIONS_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_list_apply_to_blob
int git_filter_list_apply_to_blob(libgit2.buffer.git_buf* out_, .git_filter_list* filters, libgit2.types.git_blob* blob)

Apply a filter list to the contents of a blob

git_filter_list_apply_to_buffer
int git_filter_list_apply_to_buffer(libgit2.buffer.git_buf* out_, .git_filter_list* filters, const(char)* in_, size_t in_len)

Apply filter list to a data buffer.

git_filter_list_apply_to_file
int git_filter_list_apply_to_file(libgit2.buffer.git_buf* out_, .git_filter_list* filters, libgit2.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.types.git_repository* repo, libgit2.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_load_ext
int git_filter_list_load_ext(.git_filter_list** filters, libgit2.types.git_repository* repo, libgit2.types.git_blob* blob, const(char)* path, .git_filter_mode_t mode, .git_filter_options* opts)

Load the filter list for a given path.

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

Apply a filter list to a blob as a stream

git_filter_list_stream_buffer
int git_filter_list_stream_buffer(.git_filter_list* filters, const(char)* data, size_t len, libgit2.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.types.git_repository* repo, const(char)* path, libgit2.types.git_writestream* target)

Apply a filter list to a file as a stream

Manifest constants

GIT_FILTER_OPTIONS_VERSION
enum GIT_FILTER_OPTIONS_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_list
struct git_filter_list

List of filters to be applied

git_filter_options
struct git_filter_options

Filtering options

Meta

License

GPL-2.0(Linking Exception)