MCPcopy Create free account
hub / github.com/libgit2/pygit2 / cache_clear

Method cache_clear

pygit2/submodules.py:384–394  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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)

Callers 1

test_submodule_cacheFunction · 0.80

Calls 1

check_errorFunction · 0.85

Tested by 1

test_submodule_cacheFunction · 0.64