class documentation

Tree cache extension.

Class Method from_bytes Parse TreeExtension from bytes.
Method __init__ Initialize TreeExtension.
Method to_bytes Serialize TreeExtension to bytes.
Instance Variable entries Undocumented

Inherited from IndexExtension:

Class Method from_raw Create an extension from raw data.
Class Variable data Undocumented
Class Variable signature Undocumented
def from_bytes(cls, data: bytes) -> TreeExtension:

Parse TreeExtension from bytes.

Parameters
data:bytesRaw bytes to parse
Returns
TreeExtensionTreeExtension instance
def __init__(self, entries: list[tuple[bytes, bytes, int]]):

Initialize TreeExtension.

Parameters
entries:list[tuple[bytes, bytes, int]]List of tree cache entries (path, sha, flags)
def to_bytes(self) -> bytes:

Serialize TreeExtension to bytes.

Returns
bytesSerialized extension data
entries =

Undocumented