class documentation

class CombineFilter(FilterSpec):

Constructor: CombineFilter(filters)

View In Hierarchy

Filter that combines multiple filters with AND logic.

Method __init__ Initialize combine filter.
Method __repr__ Return string representation of the filter.
Method should_include_blob Include blob only if all filters agree.
Method should_include_tree Include tree only if all filters agree.
Method to_spec_string Return 'combine:<filter1>+<filter2>+...'.
Instance Variable filters Undocumented
def __init__(self, filters: list[FilterSpec]):

Initialize combine filter.

Parameters
filters:list[FilterSpec]List of filters to combine
def __repr__(self) -> str:

Return string representation of the filter.

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

Include blob only if all filters agree.

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

Include tree only if all filters agree.

def to_spec_string(self) -> str:

Return 'combine:<filter1>+<filter2>+...'.

filters =

Undocumented