(self)
| 126 | check_error(err, io=True) |
| 127 | |
| 128 | def clear(self) -> None: |
| 129 | err = C.git_index_clear(self._index) |
| 130 | check_error(err) |
| 131 | |
| 132 | def read_tree(self, tree: Oid | Tree | str) -> None: |
| 133 | """Replace the contents of the Index with those of the given tree, |