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

Method from_c

pygit2/config.py:100–105  ·  view source on GitHub ↗
(cls, repo: 'BaseRepository', ptr: 'GitConfigC')

Source from the content-addressed store, hash-verified

98
99 @classmethod
100 def from_c(cls, repo: 'BaseRepository', ptr: 'GitConfigC') -> 'Config':
101 config = cls.__new__(cls)
102 config._repo = repo
103 config._config = ptr
104
105 return config
106
107 def __del__(self) -> None:
108 try:

Callers 1

snapshotMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected