mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2025-01-03 06:52:08 +03:00
23 lines
812 B
Rust
23 lines
812 B
Rust
pub mod access;
|
|
mod controller;
|
|
mod default_true;
|
|
mod project;
|
|
mod storage;
|
|
|
|
pub use controller::Controller;
|
|
pub use project::{
|
|
ApiProject, AuthKey, CodePushState, FetchResult, GitHostSettings, Project, ProjectId,
|
|
};
|
|
pub use storage::UpdateRequest;
|
|
|
|
/// A utility to be used from applications to optimize `git2` configuration.
|
|
/// See comments for details.
|
|
pub fn configure_git2() {
|
|
// Do not re-hash each decoded objects for quite a significant performance gain.
|
|
// This delegates object validation to `git fsck`, which seems fair.
|
|
git2::opts::strict_hash_verification(false);
|
|
// Thus far, no broken object was created, and if that would be the case, tests should catch it.
|
|
// These settings are only changed from `main` of applications.
|
|
git2::opts::strict_object_creation(false);
|
|
}
|