| 243 | } |
| 244 | |
| 245 | PyObject * |
| 246 | Object_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 | |
| 259 | PyObject * |
| 260 | Object_richcompare(PyObject *o1, PyObject *o2, int op) |
nothing calls this directly
no test coverage detected
searching dependent graphs…