(self)
| 119 | self._common_init() |
| 120 | |
| 121 | def _common_init(self) -> None: |
| 122 | self.branches = Branches(self) |
| 123 | self.references = References(self) |
| 124 | self.remotes = RemoteCollection(self) |
| 125 | self.submodules = SubmoduleCollection(self) |
| 126 | self._active_transaction = None |
| 127 | |
| 128 | # Get the pointer as the contents of a buffer and store it for |
| 129 | # later access |
| 130 | repo_cptr = ffi.new('git_repository **') |
| 131 | ffi.buffer(repo_cptr)[:] = self._pointer[:] |
| 132 | self._repo = repo_cptr[0] |
| 133 | |
| 134 | # Backwards compatible ODB access |
| 135 | def read(self, oid: Oid | str) -> tuple[int, bytes]: |
no test coverage detected