class documentation

class ReportStatusParser:

Constructor: ReportStatusParser()

View In Hierarchy

Handle status as reported by servers with 'report-status' capability.

Method __init__ Initialize ReportStatusParser.
Method check Check if there were any errors and, if so, raise exceptions.
Method handle_packet Handle a packet.
Instance Variable _done Undocumented
Instance Variable _pack_status Undocumented
Instance Variable _ref_statuses Undocumented
def __init__(self):

Initialize ReportStatusParser.

def check(self) -> Iterator[tuple[bytes, str | None]]:

Check if there were any errors and, if so, raise exceptions.

Returns
Iterator[tuple[bytes, str | None]]iterator over refs
Raises
SendPackErrorRaised when the server could not unpack
def handle_packet(self, pkt: bytes | None):

Handle a packet.

Raises
GitProtocolErrorRaised when packets are received after a flush
packet.
_done: bool =

Undocumented

_pack_status: bytes | None =

Undocumented

_ref_statuses: list[bytes] =

Undocumented