| 196 | "To access the raw, un-decoded patch, use `patch.data`."); |
| 197 | |
| 198 | PyObject * |
| 199 | Patch_text__get__(Patch *self) |
| 200 | { |
| 201 | git_buf buf = {NULL}; |
| 202 | int err; |
| 203 | PyObject *text; |
| 204 | |
| 205 | assert(self->patch); |
| 206 | err = git_patch_to_buf(&buf, self->patch); |
| 207 | if (err < 0) |
| 208 | return Error_set(err); |
| 209 | |
| 210 | text = to_unicode_n(buf.ptr, buf.size, NULL, NULL); |
| 211 | git_buf_dispose(&buf); |
| 212 | return text; |
| 213 | } |
| 214 | |
| 215 | PyDoc_STRVAR(Patch_hunks__doc__, "hunks"); |
| 216 |
nothing calls this directly
no test coverage detected
searching dependent graphs…