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

Function Commit_tree_id__get__

src/commit.c:222–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220PyDoc_STRVAR(Commit_tree_id__doc__, "The id of the tree attached to the commit.");
221
222PyObject *
223Commit_tree_id__get__(Commit *self)
224{
225 if (Object__load((Object*)self) == NULL) { return NULL; } // Lazy load
226 return git_oid_to_python(git_commit_tree_id(self->commit));
227}
228
229PyDoc_STRVAR(Commit_parents__doc__, "The list of parent commits.");
230

Callers

nothing calls this directly

Calls 2

Object__loadFunction · 0.85
git_oid_to_pythonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…