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

Method from_c

pygit2/index.py:63–69  ·  view source on GitHub ↗
(cls, repo, ptr)

Source from the content-addressed store, hash-verified

61
62 @classmethod
63 def from_c(cls, repo, ptr):
64 index = cls.__new__(cls)
65 index._repo = repo
66 index._index = ptr[0]
67 index._cindex = ptr
68
69 return index
70
71 @property
72 def _pointer(self):

Callers 9

configMethod · 0.45
config_snapshotMethod · 0.45
indexMethod · 0.45
merge_commitsMethod · 0.45
merge_treesMethod · 0.45
revert_commitMethod · 0.45
_checkout_notify_cbFunction · 0.45
diff_to_workdirMethod · 0.45
diff_to_treeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected