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

Function wrap_reference

src/reference.c:725–740  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

723
724
725PyObject *
726wrap_reference(git_reference * c_reference, Repository *repo)
727{
728 Reference *py_reference=NULL;
729
730 py_reference = PyObject_New(Reference, &ReferenceType);
731 if (py_reference) {
732 py_reference->reference = c_reference;
733 py_reference->repo = repo;
734 if (repo) {
735 Py_INCREF(repo);
736 }
737 }
738
739 return (PyObject *)py_reference;
740}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…