Function git2::opts::strict_hash_verification
source · [−]pub fn strict_hash_verification(enabled: bool)
Expand description
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.