Skip to content

Commit c498af6

Browse files
committed
Clarify implications of disabling strict hash verification
1 parent 20b1713 commit c498af6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/opts.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ use crate::raw;
44

55
/// Controls whether or not libgit2 will verify that objects loaded have the
66
/// expected hash. Enabled by default, but disabling this can significantly
7-
/// improve performance at the cost of correctness.
7+
/// improve performance, at the cost of relying on repository integrity
8+
/// without checking it.
89
pub fn strict_hash_verification(enabled: bool) {
910
let error = unsafe {
1011
raw::git_libgit2_opts(

0 commit comments

Comments
 (0)