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

Function git_oid_to_python

src/oid.c:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38
39
40PyObject *
41git_oid_to_python(const git_oid *oid)
42{
43 Oid *py_oid;
44
45 py_oid = PyObject_New(Oid, &OidType);
46 if (py_oid == NULL)
47 return NULL;
48
49 git_oid_cpy(&(py_oid->oid), oid);
50 return (PyObject*)py_oid;
51}
52
53size_t
54py_hex_to_git_oid(PyObject *py_oid, git_oid *oid)

Callers 15

Tag_target__get__Function · 0.85
FilterSource_oid__get__Function · 0.85
hashfileFunction · 0.85
hashFunction · 0.85
RefLogIter_iternextFunction · 0.85
Reference_target_implFunction · 0.85
Object_id__get__Function · 0.85
Repository_merge_baseFunction · 0.85
merge_base_xxxFunction · 0.85
Repository_create_blobFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…