Clear the submodule cache populated by `submodule_cache_all`. If there is no cache, do nothing. The cache incorporates data from the repository's configuration, as well as the state of the working tree, the index, and HEAD. So any time any of these has chang
(self)
| 382 | check_error(err) |
| 383 | |
| 384 | def cache_clear(self) -> None: |
| 385 | """ |
| 386 | Clear the submodule cache populated by `submodule_cache_all`. |
| 387 | If there is no cache, do nothing. |
| 388 | |
| 389 | The cache incorporates data from the repository's configuration, as well |
| 390 | as the state of the working tree, the index, and HEAD. So any time any |
| 391 | of these has changed, the cache might become invalid. |
| 392 | """ |
| 393 | err = C.git_repository_submodule_cache_clear(self._repository._repo) |
| 394 | check_error(err) |