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

Method _from_c

pygit2/blame.py:121–125  ·  view source on GitHub ↗
(cls, repo: Repository, ptr: 'GitBlameC')

Source from the content-addressed store, hash-verified

119
120 @classmethod
121 def _from_c(cls, repo: Repository, ptr: 'GitBlameC') -> 'Blame':
122 blame = cls.__new__(cls)
123 blame._repo = repo
124 blame._blame = ptr
125 return blame
126
127 def __del__(self) -> None:
128 C.git_blame_free(self._blame)

Callers 4

clone_repositoryFunction · 0.45
_remote_create_cbFunction · 0.45
__getitem__Method · 0.45
for_lineMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected