Remove all index entries matching pathspecs.
(self, pathspecs: typing.Sequence[str | PathLike[str]])
| 189 | check_error(err, io=True) |
| 190 | |
| 191 | def remove_all(self, pathspecs: typing.Sequence[str | PathLike[str]]) -> None: |
| 192 | """Remove all index entries matching pathspecs.""" |
| 193 | with StrArray(pathspecs) as arr: |
| 194 | err = C.git_index_remove_all(self._index, arr.ptr, ffi.NULL, ffi.NULL) |
| 195 | check_error(err, io=True) |
| 196 | |
| 197 | def add_all(self, pathspecs: None | list[str | PathLike[str]] = None) -> None: |
| 198 | """Add or update index entries matching files in the working directory. |