Struct jj_lib::working_copy::SnapshotOptions
source · pub struct SnapshotOptions<'a> {
pub base_ignores: Arc<GitIgnoreFile>,
pub fsmonitor_kind: FsmonitorKind,
pub progress: Option<&'a SnapshotProgress<'a>>,
pub max_new_file_size: u64,
}Expand description
Options used when snapshotting the working copy. Some of them may be ignored
by some WorkingCopy implementations.
Fields§
§base_ignores: Arc<GitIgnoreFile>The .gitignores to use while snapshotting. The typically come from the
user’s configured patterns combined with per-repo patterns.
fsmonitor_kind: FsmonitorKindThe fsmonitor (e.g. Watchman) to use, if any.
progress: Option<&'a SnapshotProgress<'a>>A callback for the UI to display progress.
max_new_file_size: u64The size of the largest file that should be allowed to become tracked
(already tracked files are always snapshotted). If there are larger
files in the working copy, then LockedWorkingCopy::snapshot() may
(depending on implementation)
return SnapshotError::NewFileTooLarge.
Implementations§
source§impl SnapshotOptions<'_>
impl SnapshotOptions<'_>
sourcepub fn empty_for_test() -> Self
pub fn empty_for_test() -> Self
Create an instance for use in tests.
Auto Trait Implementations§
impl<'a> Freeze for SnapshotOptions<'a>
impl<'a> !RefUnwindSafe for SnapshotOptions<'a>
impl<'a> Send for SnapshotOptions<'a>
impl<'a> Sync for SnapshotOptions<'a>
impl<'a> Unpin for SnapshotOptions<'a>
impl<'a> !UnwindSafe for SnapshotOptions<'a>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more