| 83 | "Get line counts of each type in a patch (context, additions, deletions)."); |
| 84 | |
| 85 | PyObject * |
| 86 | Patch_line_stats__get__(Patch *self) |
| 87 | { |
| 88 | size_t context, additions, deletions; |
| 89 | int err; |
| 90 | |
| 91 | assert(self->patch); |
| 92 | err = git_patch_line_stats(&context, &additions, &deletions, self->patch); |
| 93 | if (err < 0) |
| 94 | return Error_set(err); |
| 95 | |
| 96 | return Py_BuildValue("III", context, additions, deletions); |
| 97 | } |
| 98 | |
| 99 | PyDoc_STRVAR(Patch_create_from__doc__, |
| 100 | "Create a patch from blobs, buffers, or a blob and a buffer"); |
nothing calls this directly
no test coverage detected
searching dependent graphs…