Settings

  • class pygit2.Settings
  • Library-wide settings interface.

    • cacheobject_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 notbe cached. Defaults to 0 for GIT_OBJ_BLOB (i.e. won’t cacheblobs) and 4k for GIT_OBJ_COMMIT, GIT_OBJ_TREE, and GIT_OBJ_TAG.
    • cached_memory

    • Maximum mmap window size

    • mwindow_mapped_limit

    • Mwindow mapped limit

    • mwindow_size

    • Maximum mmap window size

    • search_path

    • Configuration file search path.

This behaves like an array whose indices correspond to theGITCONFIG_LEVEL* values. The local search path cannot bechanged.

  • setssl_cert_locations(_ssl_cert_file, ssl_cert_dir)
  • Set both file path and lookup dir for TLS certs in libgit2.

  • ssl_cert_dir

  • TLS certificates lookup directory path.

  • ssl_cert_file

  • TLS certificate file path.