MCPcopy Create free account
hub / github.com/libgit2/pygit2 / Mailmap_init

Function Mailmap_init

src/mailmap.c:40–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38extern PyTypeObject RepositoryType;
39
40int
41Mailmap_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
61PyDoc_STRVAR(Mailmap_from_repository__doc__,
62 "from_repository(repository: Repository) -> Mailmap\n"

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…