globalOptions

Static functions with which to query or set global libgit2 options.

Members

Aliases

getCachedMemory
alias getCachedMemory = getCacheMemory

alternate spelling

Properties

defaultCacheMaxSize
ptrdiff_t defaultCacheMaxSize [@property getter]

Return the default cache size - 256Mb.

mwindowMappedLimit
size_t mwindowMappedLimit [@property getter]

Get the maximum memory in bytes that will be mapped in total by the library.

mwindowMappedLimit
size_t mwindowMappedLimit [@property setter]

Set the maximum amount of memory in bytes that can be mapped at any time by the library.

mwindowSize
size_t mwindowSize [@property getter]

Get the maximum mmap window size.

mwindowSize
size_t mwindowSize [@property setter]

Set the maximum mmap window size.

Static functions

getCacheMemory
CacheMemory getCacheMemory()

Get the current status of the cache.

getSearchPaths
string[] getSearchPaths(GitConfigLevel configLevel)

Get the search paths for a given level of config data.

setCacheMaxSize
void setCacheMaxSize(ptrdiff_t maxStorageBytes)

Set the maximum total data size that will be cached in memory across all repositories before libgit2 starts evicting objects from the cache. This is a soft limit, in that the library might briefly exceed it, but will start aggressively evicting objects from cache when that happens.

setCacheMode
void setCacheMode(CacheMode mode)

Enable or disable caching completely.

setCacheObjectLimit
void setCacheObjectLimit(GitType type, size_t size)

Set the maximum data size for the given type of object to be considered eligible for caching in memory. Setting to value to zero means that that type of object will not be cached.

setSearchPaths
void setSearchPaths(GitConfigLevel configLevel, string[] paths)

Set the search paths for a given level of config data.

Structs

CacheMemory
struct CacheMemory

The cache status of libgit2.

Meta