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

Function Mailmap_resolve

src/mailmap.c:145–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143 "\n"
144 "Resolve name & email to a real name and email.");
145PyObject *
146Mailmap_resolve(Mailmap *self, PyObject *args)
147{
148 const char *name = NULL, *email = NULL;
149 const char *real_name = NULL, *real_email = NULL;
150 int error;
151
152 if (!PyArg_ParseTuple(args, "ss", &name, &email))
153 return NULL;
154
155 error = git_mailmap_resolve(&real_name, &real_email, self->mailmap, name, email);
156 if (error < 0)
157 return Error_set(error);
158
159 return Py_BuildValue("ss", real_name, real_email);
160}
161
162PyDoc_STRVAR(Mailmap_resolve_signature__doc__,
163 "resolve_signature(sig: Signature) -> Signature\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…