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

Method push_negotiation

pygit2/callbacks.py:201–208  ·  view source on GitHub ↗

During a push, called once between the negotiation step and the upload. Provides information about what updates will be performed. Override with your own function to check the pending updates and possibly reject them (by raising an exception).

(self, updates: list['PushUpdate'])

Source from the content-addressed store, hash-verified

199 raise Passthrough
200
201 def push_negotiation(self, updates: list['PushUpdate']) -> None:
202 """
203 During a push, called once between the negotiation step and the upload.
204 Provides information about what updates will be performed.
205
206 Override with your own function to check the pending updates
207 and possibly reject them (by raising an exception).
208 """
209
210 def transfer_progress(self, stats: 'TransferProgress') -> None:
211 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected