Library-wide settings interface.
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. The default cache size is 256MB.
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. Defaults to 0 for enums.ObjectType.BLOB (i.e. won’t cache blobs) and 4k for COMMIT, TREE, and TAG.
Get the current bytes in cache and the maximum that would be allowed in the cache.
This will cause .keep file existence checks to be skipped when accessing packfiles, which can help performance with remote filesystems.
Enable or disable caching completely.
Because caches are repository-specific, disabling the cache cannot immediately clear all cached objects, but each cache will be cleared on the next attempt to update anything in it.
Enable or disable fsync for git directory operations
Enable or disable HTTP Expect/Continue for large pushes
Enable or disable offset delta encoding
Enable or disable strict hash verification
Enable or disable strict object creation validation
Enable or disable strict symbolic reference creation validation
Enable or disable unsaved index safety checks
Get the list of enabled extensions
Get or set the home directory
Get or set the maximum number of files to be mapped at any time
Get or set the maximum memory that will be mapped in total by the library
Get or set the maximum mmap window size
Get or set repository directory ownership validation
Get or set the maximum number of objects in a pack
Configuration file search path.
This behaves like an array whose indices correspond to ConfigLevel values. The local search path cannot be changed.
Get or set the server connection timeout in milliseconds
Get or set the server timeout in milliseconds
Set the list of enabled extensions
Set the priority for loose ODB backend (default 2)
Set the priority for packed ODB backend (default 1)
Set the SSL certificate-authority locations.
cert_file is the location of a file containing several certificates concatenated together.
cert_dir is the location of a directory holding several certificates, one per file.
Either parameter may be NULL, but not both.
Set the SSL ciphers to use for HTTPS connections
TLS certificates lookup directory path.
TLS certificate file path.
Get or set the default template path for new repositories
Get or set the user agent string for network operations
Get or set the user agent product name
Get or set the Windows share mode for opening files