Update the contents of the Index by reading from a file. Parameters: force If True (the default) always reload. If False, only if the file has changed.
(self, force: bool = True)
| 107 | return GenericIterator(self) |
| 108 | |
| 109 | def read(self, force: bool = True) -> None: |
| 110 | """ |
| 111 | Update the contents of the Index by reading from a file. |
| 112 | |
| 113 | Parameters: |
| 114 | |
| 115 | force |
| 116 | If True (the default) always reload. If False, only if the file |
| 117 | has changed. |
| 118 | """ |
| 119 | |
| 120 | err = C.git_index_read(self._index, force) |
| 121 | check_error(err, io=True) |
| 122 | |
| 123 | def write(self) -> None: |
| 124 | """Write the contents of the Index to disk.""" |