| 96 | "An unambiguous short (abbreviated) hex Oid string for the object."); |
| 97 | |
| 98 | PyObject * |
| 99 | Object_short_id__get__(Object *self) |
| 100 | { |
| 101 | if (Object__load(self) == NULL) { return NULL; } // Lazy load |
| 102 | |
| 103 | git_buf short_id = { NULL, 0, 0 }; |
| 104 | int err = git_object_short_id(&short_id, self->obj); |
| 105 | if (err != GIT_OK) |
| 106 | return Error_set(err); |
| 107 | |
| 108 | PyObject *py_short_id = to_unicode_n(short_id.ptr, short_id.size, NULL, "strict"); |
| 109 | git_buf_dispose(&short_id); |
| 110 | return py_short_id; |
| 111 | } |
| 112 | |
| 113 | |
| 114 | PyDoc_STRVAR(Object_type__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…