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

Function Commit_message_encoding__get__

src/commit.c:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40PyDoc_STRVAR(Commit_message_encoding__doc__, "Message encoding.");
41
42PyObject *
43Commit_message_encoding__get__(Commit *self)
44{
45 if (Object__load((Object*)self) == NULL) { return NULL; } // Lazy load
46
47 const char *encoding = git_commit_message_encoding(self->commit);
48 if (encoding == NULL)
49 Py_RETURN_NONE;
50
51 return to_encoding(encoding);
52}
53
54
55PyDoc_STRVAR(Commit_message__doc__, "The commit message, a text string.");

Callers

nothing calls this directly

Calls 1

Object__loadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…