libgit2

git_attr_cache_flush

Version:

Flush the gitattributes cache.

Call this if you have reason to believe that the attributes files on disk no longer match the cached contents of memory. This will cause the attributes files to be reloaded the next time that an attribute access function is called.

Signature

int git_attr_cache_flush(git_repository *repo);

Parameters

In
repo

The repository containing the gitattributes cache

Returns

int

0 on success, or an error code

Versions