[][src]Module git2::opts

Bindings to libgit2's git_libgit2_opts function.

Functions

get_search_path

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

reset_search_path

Reset the search path for a given level of config data to the default (generally based on environment variables).

set_search_path

Set the search path for a level of config data. The search path applied to shared attributes and ignore files, too.

strict_hash_verification

Controls whether or not libgit2 will verify that objects loaded have the expected hash. Enabled by default, but disabling this can significantly improve performance, at the cost of relying on repository integrity without checking it.

strict_object_creation

Controls whether or not libgit2 will verify when writing an object that all objects it references are valid. Enabled by default, but disabling this can significantly improve performance, at the cost of potentially allowing the creation of objects that reference invalid objects (due to programming error or repository corruption).