| 69 | " [NOTE: 'mailmap.blob' defaults to 'HEAD:.mailmap' in bare repositories]\n" |
| 70 | " 3. The path in the 'mailmap.file' config entry, if set."); |
| 71 | PyObject * |
| 72 | Mailmap_from_repository(Mailmap *dummy, PyObject *args) |
| 73 | { |
| 74 | Repository *repo = NULL; |
| 75 | git_mailmap *mm = NULL; |
| 76 | int error; |
| 77 | |
| 78 | if (!PyArg_ParseTuple(args, "O!", &RepositoryType, &repo)) |
| 79 | return NULL; |
| 80 | |
| 81 | error = git_mailmap_from_repository(&mm, repo->repo); |
| 82 | if (error < 0) |
| 83 | return Error_set(error); |
| 84 | |
| 85 | return wrap_mailmap(mm); |
| 86 | } |
| 87 | |
| 88 | PyDoc_STRVAR(Mailmap_from_buffer__doc__, |
| 89 | "from_buffer(buffer: str) -> Mailmap\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…