class documentation

class LFSFilterDriver:

Constructor: LFSFilterDriver(lfs_store, config)

View In Hierarchy

LFS filter driver implementation.

Method __init__ Initialize LFSFilterDriver.
Method clean Convert file content to LFS pointer (clean filter).
Method cleanup Clean up any resources held by this filter driver.
Method reuse Check if this filter driver should be reused with the given configuration.
Method smudge Convert LFS pointer to file content (smudge filter).
Instance Variable config Undocumented
Instance Variable lfs_store Undocumented
Method _download_object Download an LFS object from the server.
def __init__(self, lfs_store: LFSStore, config: Config | None = None):

Initialize LFSFilterDriver.

def clean(self, data: bytes) -> bytes:

Convert file content to LFS pointer (clean filter).

def cleanup(self):

Clean up any resources held by this filter driver.

def reuse(self, config: Config | None, filter_name: str) -> bool:

Check if this filter driver should be reused with the given configuration.

def smudge(self, data: bytes, path: bytes = b'') -> bytes:

Convert LFS pointer to file content (smudge filter).

config =

Undocumented

lfs_store =

Undocumented

def _download_object(self, pointer: LFSPointer) -> bytes:

Download an LFS object from the server.

Parameters
pointer:LFSPointerLFS pointer containing OID and size
Returns
bytesDownloaded content
Raises
LFSErrorIf download fails for any reason