libgit2

git_repository_submodule_cache_clear

Version:

Clear the submodule cache.

Clear the submodule cache populated by git_repository_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 changed, the cache might become invalid.

Signature

int git_repository_submodule_cache_clear(git_repository *repo);

Parameters

In
repo

the repository whose submodule cache will be cleared

Returns

int

0 on success, or an error code

Versions