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

Method orig_commit_id

pygit2/blame.py:101–104  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

99
100 @property
101 def orig_commit_id(self) -> Oid:
102 return Oid(
103 raw=bytes(ffi.buffer(ffi.addressof(self._hunk, 'orig_commit_id'))[:])
104 )
105
106 @property
107 def orig_path(self) -> None | str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected