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

Function Commit_author__get__

src/commit.c:187–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185PyDoc_STRVAR(Commit_author__doc__, "The author of the commit.");
186
187PyObject *
188Commit_author__get__(Commit *self)
189{
190 if (Object__load((Object*)self) == NULL) { return NULL; } // Lazy load
191
192 const git_signature *signature = git_commit_author(self->commit);
193 const char *encoding = git_commit_message_encoding(self->commit);
194
195 return build_signature((Object*)self, signature, encoding);
196}
197
198PyDoc_STRVAR(Commit_tree__doc__, "The tree object attached to the commit.");
199

Callers

nothing calls this directly

Calls 2

Object__loadFunction · 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…