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

Function Mailmap_resolve_signature

src/mailmap.c:166–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164 "\n"
165 "Resolve signature to real name and email.");
166PyObject *
167Mailmap_resolve_signature(Mailmap *self, PyObject *args)
168{
169 Signature *sig = NULL;
170 git_signature *resolved = NULL;
171 int error;
172
173 if (!PyArg_ParseTuple(args, "O!", &SignatureType, &sig))
174 return NULL;
175
176 error = git_mailmap_resolve_signature(&resolved, self->mailmap, sig->signature);
177 if (error < 0)
178 return Error_set(error);
179
180 return build_signature(sig->obj, resolved, sig->encoding);
181}
182
183static void
184Mailmap_dealloc(Mailmap *self)

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
build_signatureFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…