MCPcopy Create free account
hub / github.com/libgit2/pygit2 / push_transfer_progress

Method push_transfer_progress

pygit2/callbacks.py:223–234  ·  view source on GitHub ↗

During the upload portion of a push, this will be regularly called with progress information. Be aware that this is called inline with pack building operations, so performance may be affected. Override with your own function to report push transfer progress

(
        self, objects_pushed: int, total_objects: int, bytes_pushed: int
    )

Source from the content-addressed store, hash-verified

221 """
222
223 def push_transfer_progress(
224 self, objects_pushed: int, total_objects: int, bytes_pushed: int
225 ) -> None:
226 """
227 During the upload portion of a push, this will be regularly called
228 with progress information.
229
230 Be aware that this is called inline with pack building operations,
231 so performance may be affected.
232
233 Override with your own function to report push transfer progress.
234 """
235
236 def update_tips(self, refname: str, old: Oid, new: Oid) -> None:
237 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected