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

Method _from_c

pygit2/blame.py:57–61  ·  view source on GitHub ↗
(cls, blame: 'Blame', ptr: 'GitHunkC')

Source from the content-addressed store, hash-verified

55
56 @classmethod
57 def _from_c(cls, blame: 'Blame', ptr: 'GitHunkC') -> 'BlameHunk':
58 hunk = cls.__new__(cls)
59 hunk._blame = blame
60 hunk._hunk = ptr
61 return hunk
62
63 @property
64 def lines_in_hunk(self) -> int:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected