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

Function py_oid_to_git_oid

src/oid.c:88–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88size_t
89py_oid_to_git_oid(PyObject *py_oid, git_oid *oid)
90{
91 /* Oid */
92 if (PyObject_TypeCheck(py_oid, (PyTypeObject*)&OidType)) {
93 git_oid_cpy(oid, &((Oid*)py_oid)->oid);
94 return GIT_OID_HEXSZ;
95 }
96
97 /* Hex */
98 return py_hex_to_git_oid(py_oid, oid);
99}
100
101int
102py_oid_to_git_oid_expand(git_repository *repo, PyObject *py_str, git_oid *oid)

Callers 15

Blob__write_to_queueFunction · 0.85
py_oid_to_git_oid_expandFunction · 0.85
Reference_initFunction · 0.85
Repository_cherrypickFunction · 0.85
Repository_create_commitFunction · 0.85
Repository_create_tagFunction · 0.85
Repository_resetFunction · 0.85
Odb_readFunction · 0.85
Odb_read_headerFunction · 0.85
Odb_existsFunction · 0.85

Calls 1

py_hex_to_git_oidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…