| 38 | extern PyTypeObject RepositoryType; |
| 39 | |
| 40 | int |
| 41 | Mailmap_init(Mailmap *self, PyObject *args, PyObject *kwargs) |
| 42 | { |
| 43 | char *keywords[] = {NULL}; |
| 44 | git_mailmap *mm; |
| 45 | int error; |
| 46 | |
| 47 | /* Our init method does not handle parameters */ |
| 48 | if (!PyArg_ParseTupleAndKeywords(args, kwargs, "", keywords)) |
| 49 | return -1; |
| 50 | |
| 51 | error = git_mailmap_new(&mm); |
| 52 | if (error < 0) { |
| 53 | Error_set(error); |
| 54 | return -1; |
| 55 | } |
| 56 | |
| 57 | self->mailmap = mm; |
| 58 | return 0; |
| 59 | } |
| 60 | |
| 61 | PyDoc_STRVAR(Mailmap_from_repository__doc__, |
| 62 | "from_repository(repository: Repository) -> Mailmap\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…