MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / tree

Method tree

github/GitCommit.py:155–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

153
154 @property
155 def tree(self) -> GitTree:
156 # if populated from a simple-commit, tree_id holds the sha
157 if is_undefined(self._tree) and is_defined(self._tree_id):
158 return github.GitTree.GitTree(self._requester, self._headers, {"sha": self._tree_id.value})
159 self._completeIfNotSet(self._tree)
160 return self._tree.value
161
162 @property
163 def tree_id(self) -> str:

Callers

nothing calls this directly

Calls 3

is_undefinedFunction · 0.90
is_definedFunction · 0.90
_completeIfNotSetMethod · 0.80

Tested by

no test coverage detected