pub struct WriteOptions {
pub silent: bool,
pub assume_loose_only_existence: bool,
pub trust_new_loose: bool,
pub loose_prefix_dirs_ready: bool,
}Expand description
Options for Odb::write_with_options.
Fields§
§silent: boolWhen set, do not touch mtimes on existing objects (Git WRITE_OBJECT_SILENT).
assume_loose_only_existence: boolWhen set, skip the full Odb::exists scan (packs/alternates) and only
test for a loose file in this repository’s object directory before writing.
Bulk staging of new worktree blobs uses this so each insert does not walk every pack on a miss.
trust_new_loose: boolWhen set, skip existence probes and write when the loose path is absent (bulk add of all-new blobs).
loose_prefix_dirs_ready: boolWhen set, skip create_dir_all on the loose prefix directory (call
Odb::ensure_all_loose_prefix_dirs first).
Trait Implementations§
Source§impl Clone for WriteOptions
impl Clone for WriteOptions
impl Copy for WriteOptions
Source§impl Debug for WriteOptions
impl Debug for WriteOptions
Source§impl Default for WriteOptions
impl Default for WriteOptions
impl Eq for WriteOptions
Source§impl PartialEq for WriteOptions
impl PartialEq for WriteOptions
impl StructuralPartialEq for WriteOptions
Auto Trait Implementations§
impl Freeze for WriteOptions
impl RefUnwindSafe for WriteOptions
impl Send for WriteOptions
impl Sync for WriteOptions
impl Unpin for WriteOptions
impl UnsafeUnpin for WriteOptions
impl UnwindSafe for WriteOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more