module documentation
Implementation of Git filter drivers (clean/smudge filters).
| Class | |
Filter driver that chains multiple filters together. |
| Class | |
Blob normalizer that applies clean/smudge filters based on gitattributes. |
| Class | |
Context for managing stateful filter resources. |
| Class | |
Protocol for filter drivers. |
| Class | |
Registry for filter drivers. |
| Class | |
Filter driver that executes external processes. |
| Exception | |
Exception raised when filter operations fail. |
| Function | get |
Get the appropriate filter driver for a given path. |
def get_filter_for_path(path:
bytes, gitattributes: GitAttributes, filter_registry: FilterRegistry | None = None, filter_context: FilterContext | None = None) -> FilterDriver | None:
ΒΆ
Get the appropriate filter driver for a given path.
| Parameters | |
path:bytes | Path to check |
gitattributes:GitAttributes | GitAttributes object with parsed patterns |
filterFilterRegistry | None | Registry of filter drivers (deprecated, use filter_context) |
filterFilterContext | None | Context for managing filter state |
| Returns | |
FilterDriver | None | FilterDriver instance or None |