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