| 41 | |
| 42 | |
| 43 | PyObject * |
| 44 | wrap_patch(git_patch *patch, Blob *oldblob, Blob *newblob) |
| 45 | { |
| 46 | Patch *py_patch; |
| 47 | |
| 48 | assert(patch); |
| 49 | |
| 50 | py_patch = PyObject_New(Patch, &PatchType); |
| 51 | if (py_patch) { |
| 52 | py_patch->patch = patch; |
| 53 | |
| 54 | Py_XINCREF(oldblob); |
| 55 | py_patch->oldblob = oldblob; |
| 56 | |
| 57 | Py_XINCREF(newblob); |
| 58 | py_patch->newblob = newblob; |
| 59 | } |
| 60 | |
| 61 | return (PyObject*) py_patch; |
| 62 | } |
| 63 | |
| 64 | static void |
| 65 | Patch_dealloc(Patch *self) |
no outgoing calls
no test coverage detected
searching dependent graphs…