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

Function Mailmap_from_repository

src/mailmap.c:71–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 " [NOTE: 'mailmap.blob' defaults to 'HEAD:.mailmap' in bare repositories]\n"
70 " 3. The path in the 'mailmap.file' config entry, if set.");
71PyObject *
72Mailmap_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
88PyDoc_STRVAR(Mailmap_from_buffer__doc__,
89 "from_buffer(buffer: str) -> Mailmap\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…