Expand description
Safe FFI bindings to libgit2’s filter system
Provides type-safe wrappers around git2/sys/filter.h
Structs§
- GitFilter
- Filter structure (must match libgit2’s git_filter)
- GitWrite
Stream Base - Base writestream structure (matches libgit2’s git_writestream) Custom writestreams should embed this at the start of their struct
- Opaque
GitFilter - Opaque
GitFilter Source - Opaque
GitWrite Stream
Constants§
- GIT_
FILTER_ CLEAN - Filter mode for cleaning (workdir → ODB)
- GIT_
FILTER_ SMUDGE - Filter mode for smudging (ODB → workdir)
- GIT_
FILTER_ TO_ WORKTREE - Flag indicating operation is towards worktree (checkout operation)
- GIT_
FILTER_ VERSION - Current filter structure version for ABI compatibility
- GIT_
PASSTHROUGH - Filter passthrough - filter declines to process this file
- LIBGI
T2_ MWINDOW_ SIZE - Memory window size for large file operations (8 MB)
Functions§
- git_
filter_ ⚠global_ init - Initialize the global filter registry (internal libgit2 function)
- git_
filter_ ⚠init - Initialize a git_filter with default values
- git_
filter_ ⚠register - Register a filter with libgit2
- git_
filter_ ⚠source_ flags - Get filter source flags (e.g., GIT_FILTER_TO_WORKTREE)
- git_
filter_ ⚠source_ mode - Get filter source mode (clean or smudge)
- git_
filter_ ⚠source_ path - Get filter source path
- git_
filter_ ⚠source_ repo - Get filter source repo
- git_
filter_ ⚠unregister - Unregister a filter