class documentation

class BlobLimitFilter(FilterSpec):

Constructor: BlobLimitFilter(limit)

View In Hierarchy

Filter that excludes blobs larger than a specified size.

Method __init__ Initialize blob limit filter.
Method __repr__ Return string representation of the filter.
Method should_include_blob Include only blobs smaller than or equal to the limit.
Method should_include_tree Include all trees.
Method to_spec_string Return 'blob:limit=<size>' with appropriate unit.
Instance Variable limit Undocumented
def __init__(self, limit: int):

Initialize blob limit filter.

Parameters
limit:intMaximum blob size in bytes
def __repr__(self) -> str:

Return string representation of the filter.

def should_include_blob(self, blob_size: int) -> bool:

Include only blobs smaller than or equal to the limit.

def should_include_tree(self, depth: int) -> bool:
def to_spec_string(self) -> str:

Return 'blob:limit=<size>' with appropriate unit.

limit =

Undocumented