| 52 | extern PyObject *FileModeEnum; |
| 53 | |
| 54 | PyObject * |
| 55 | wrap_diff(git_diff *diff, Repository *repo) |
| 56 | { |
| 57 | Diff *py_diff; |
| 58 | |
| 59 | py_diff = PyObject_New(Diff, &DiffType); |
| 60 | if (py_diff) { |
| 61 | Py_XINCREF(repo); |
| 62 | py_diff->repo = repo; |
| 63 | py_diff->diff = diff; |
| 64 | } |
| 65 | |
| 66 | return (PyObject*) py_diff; |
| 67 | } |
| 68 | |
| 69 | PyObject * |
| 70 | wrap_diff_file(const git_diff_file *file) |
no outgoing calls
no test coverage detected
searching dependent graphs…