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

Function Mailmap_from_buffer

src/mailmap.c:92–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 "\n"
91 "Parse a passed-in buffer and construct a mailmap object.");
92PyObject *
93Mailmap_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
110PyDoc_STRVAR(Mailmap_add_entry__doc__,
111 "add_entry(real_name: str = None, real_email: str = None, replace_name: str = None, replace_email: str)\n"

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
wrap_mailmapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…