Function git2::opts::enable_caching

source ·
pub fn enable_caching(enabled: bool)
Expand description

Controls whether or not libgit2 will cache loaded objects. Enabled by default, but disabling this can improve performance and memory usage if loading a large number of objects that will not be referenced again. Disabling this will cause repository objects to clear their caches when next accessed.