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

Function Object_hash

src/object.c:235–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235Py_hash_t
236Object_hash(Object *self)
237{
238 const git_oid *oid = Object__id(self);
239 PyObject *py_oid = git_oid_to_py_str(oid);
240 Py_hash_t ret = PyObject_Hash(py_oid);
241 Py_DECREF(py_oid);
242 return ret;
243}
244
245PyObject *
246Object_repr(Object *self)

Callers

nothing calls this directly

Calls 2

Object__idFunction · 0.85
git_oid_to_py_strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…