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

Function _push_negotiation_cb

pygit2/callbacks.py:576–585  ·  view source on GitHub ↗
(updates, num_updates, data)

Source from the content-addressed store, hash-verified

574
575@libgit2_callback
576def _push_negotiation_cb(updates, num_updates, data):
577 from .remotes import PushUpdate
578
579 push_negotiation = getattr(data, 'push_negotiation', None)
580 if not push_negotiation:
581 return 0
582
583 py_updates = [PushUpdate(updates[i]) for i in range(num_updates)]
584 push_negotiation(py_updates)
585 return 0
586
587
588@libgit2_callback

Callers

nothing calls this directly

Calls 1

PushUpdateClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…