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

Function _push_update_reference_cb

pygit2/callbacks.py:589–597  ·  view source on GitHub ↗
(ref, msg, data)

Source from the content-addressed store, hash-verified

587
588@libgit2_callback
589def _push_update_reference_cb(ref, msg, data):
590 push_update_reference = getattr(data, 'push_update_reference', None)
591 if not push_update_reference:
592 return 0
593
594 refname = maybe_string(ref)
595 message = maybe_string(msg)
596 push_update_reference(refname, message)
597 return 0
598
599
600@libgit2_callback

Callers

nothing calls this directly

Calls 1

maybe_stringFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…