| 90 | "\n" |
| 91 | "Parse a passed-in buffer and construct a mailmap object."); |
| 92 | PyObject * |
| 93 | Mailmap_from_buffer(Mailmap *dummy, PyObject *args) |
| 94 | { |
| 95 | char *buffer = NULL; |
| 96 | Py_ssize_t size = 0; |
| 97 | git_mailmap *mm = NULL; |
| 98 | int error; |
| 99 | |
| 100 | if (!PyArg_ParseTuple(args, "s#", &buffer, &size)) |
| 101 | return NULL; |
| 102 | |
| 103 | error = git_mailmap_from_buffer(&mm, buffer, size); |
| 104 | if (error < 0) |
| 105 | return Error_set(error); |
| 106 | |
| 107 | return wrap_mailmap(mm); |
| 108 | } |
| 109 | |
| 110 | PyDoc_STRVAR(Mailmap_add_entry__doc__, |
| 111 | "add_entry(real_name: str = None, real_email: str = None, replace_name: str = None, replace_email: str)\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…