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

Function _update_tips_cb

pygit2/callbacks.py:658–667  ·  view source on GitHub ↗
(refname, a, b, data)

Source from the content-addressed store, hash-verified

656
657@libgit2_callback
658def _update_tips_cb(refname, a, b, data):
659 update_tips = getattr(data, 'update_tips', None)
660 if not update_tips:
661 return 0
662
663 s = maybe_string(refname)
664 a = Oid(raw=bytes(ffi.buffer(a)[:]))
665 b = Oid(raw=bytes(ffi.buffer(b)[:]))
666 update_tips(s, a, b)
667 return 0
668
669
670#

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…