Settings¶
Contents
-
class
pygit2.
Settings
¶ Library-wide settings interface.
-
cache_object_limit
(object_type, value)¶ - 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 GIT_OBJ_BLOB (i.e. won’t cache blobs) and 4k for GIT_OBJ_COMMIT, GIT_OBJ_TREE, and GIT_OBJ_TAG.
-
property
cached_memory
¶ Maximum mmap window size
-
property
mwindow_mapped_limit
¶ Mwindow mapped limit
-
property
mwindow_size
¶ Maximum mmap window size
-
property
search_path
¶ Configuration file search path.
This behaves like an array whose indices correspond to the GIT_CONFIG_LEVEL_* values. The local search path cannot be changed.
-
set_ssl_cert_locations
(ssl_cert_file, ssl_cert_dir)¶ Set both file path and lookup dir for TLS certs in libgit2.
-
property
ssl_cert_dir
¶ TLS certificates lookup directory path.
-
property
ssl_cert_file
¶ TLS certificate file path.
-