Struct jj_lib::working_copy::SnapshotOptions
source · pub struct SnapshotOptions<'a> {
pub base_ignores: Arc<GitIgnoreFile>,
pub fsmonitor_kind: Option<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 .gitignore
s to use while snapshotting. The typically come from the
user’s configured patterns combined with per-repo patterns.
fsmonitor_kind: Option<FsmonitorKind>
The 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: u64
The 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> !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