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

Method __init__

pygit2/remotes.py:76–81  ·  view source on GitHub ↗
(self, c_struct: Any)

Source from the content-addressed store, hash-verified

74 """
75
76 def __init__(self, c_struct: Any) -> None:
77 self.local = bool(c_struct.local)
78 self.oid = Oid(raw=bytes(ffi.buffer(c_struct.oid.id)[:]))
79 self.loid = Oid(raw=bytes(ffi.buffer(c_struct.loid.id)[:]))
80 self.name = maybe_string(c_struct.name)
81 self.symref_target = maybe_string(c_struct.symref_target)
82
83
84class PushUpdate:

Callers

nothing calls this directly

Calls 1

maybe_stringFunction · 0.85

Tested by

no test coverage detected