#[non_exhaustive]pub struct CommitGraphOptions {
pub changed_paths: bool,
pub dry_run: bool,
}Expand description
Options for Repository::write_commit_graph.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.changed_paths: boolWhen true, emit Bloom filter chunks for changed-path queries.
dry_run: boolReport without writing objects/info/commit-graph.
Implementations§
Source§impl CommitGraphOptions
impl CommitGraphOptions
Sourcepub fn with_changed_paths(changed_paths: bool) -> Self
pub fn with_changed_paths(changed_paths: bool) -> Self
Build options with an explicit changed-paths Bloom setting.
Sourcepub fn with_dry_run(dry_run: bool) -> Self
pub fn with_dry_run(dry_run: bool) -> Self
Build options with Self::dry_run set.
Trait Implementations§
Source§impl Clone for CommitGraphOptions
impl Clone for CommitGraphOptions
impl Copy for CommitGraphOptions
Source§impl Debug for CommitGraphOptions
impl Debug for CommitGraphOptions
Source§impl Default for CommitGraphOptions
impl Default for CommitGraphOptions
impl Eq for CommitGraphOptions
Source§impl PartialEq for CommitGraphOptions
impl PartialEq for CommitGraphOptions
impl StructuralPartialEq for CommitGraphOptions
Auto Trait Implementations§
impl Freeze for CommitGraphOptions
impl RefUnwindSafe for CommitGraphOptions
impl Send for CommitGraphOptions
impl Sync for CommitGraphOptions
impl Unpin for CommitGraphOptions
impl UnsafeUnpin for CommitGraphOptions
impl UnwindSafe for CommitGraphOptions
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