pub struct MutationWorktreeCheck {
pub checked: bool,
pub allow_dirty: bool,
pub dirty_at_start: Vec<String>,
pub changed_paths: Vec<String>,
}Expand description
The git worktree check of a run: a run refuses a dirty worktree unless
--allow-dirty is set, and it compares the worktree after the run.
Fields§
§checked: boolFalse when the root is not in a git worktree, so no check ran.
allow_dirty: boolTrue when the caller allowed a dirty worktree.
dirty_at_start: Vec<String>The paths that were dirty before the run, sorted.
changed_paths: Vec<String>The paths that the run changed, sorted. A non-empty list is an error.
Trait Implementations§
Source§impl Clone for MutationWorktreeCheck
impl Clone for MutationWorktreeCheck
Source§impl Debug for MutationWorktreeCheck
impl Debug for MutationWorktreeCheck
impl Eq for MutationWorktreeCheck
Source§impl PartialEq for MutationWorktreeCheck
impl PartialEq for MutationWorktreeCheck
Source§impl Serialize for MutationWorktreeCheck
impl Serialize for MutationWorktreeCheck
impl StructuralPartialEq for MutationWorktreeCheck
Auto Trait Implementations§
impl Freeze for MutationWorktreeCheck
impl RefUnwindSafe for MutationWorktreeCheck
impl Send for MutationWorktreeCheck
impl Sync for MutationWorktreeCheck
impl Unpin for MutationWorktreeCheck
impl UnsafeUnpin for MutationWorktreeCheck
impl UnwindSafe for MutationWorktreeCheck
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.