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

Function Object_repr

src/object.c:245–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245PyObject *
246Object_repr(Object *self)
247{
248 char hex[GIT_OID_HEXSZ + 1];
249
250 git_oid_fmt(hex, Object__id(self));
251 hex[GIT_OID_HEXSZ] = '\0';
252
253 return PyUnicode_FromFormat("<pygit2.Object{%s:%s}>",
254 git_object_type2string(Object__type(self)),
255 hex
256 );
257}
258
259PyObject *
260Object_richcompare(PyObject *o1, PyObject *o2, int op)

Callers

nothing calls this directly

Calls 2

Object__idFunction · 0.85
Object__typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…