class documentation

Base class for all filter specifications.

Method should_include_blob Determine if a blob of given size should be included.
Method should_include_tree Determine if a tree at given depth should be included.
Method to_spec_string Convert filter spec back to string format.
def should_include_blob(self, blob_size: int) -> bool:

Determine if a blob of given size should be included.

Parameters
blob_size:intSize of the blob in bytes
Returns
boolTrue if the blob should be included, False otherwise
def should_include_tree(self, depth: int) -> bool:

Determine if a tree at given depth should be included.

Parameters
depth:intDepth of the tree (0 = root)
Returns
boolTrue if the tree should be included, False otherwise
def to_spec_string(self) -> str:

Convert filter spec back to string format.

Returns
strFilter specification string (e.g., blob:none, blob:limit=1m)