#[non_exhaustive]pub struct OperationState {
pub in_progress: Vec<InProgressOperation>,
pub merge_heads: Vec<ObjectId>,
pub merge_message: Option<String>,
pub cherry_pick_head: Option<ObjectId>,
pub revert_head: Option<ObjectId>,
pub orig_head: Option<ObjectId>,
}Expand description
What paused operations left in the git directory, from Operations::state.
All fields describe the current worktree’s git directory (a linked worktree has its own merge and sequencer state); a bisect is recorded in the common directory.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.in_progress: Vec<InProgressOperation>Paused operations, in detection order: merge, rebase (or am), cherry-pick, revert,
bisect, then an unfinished history rewrite. More than one can be active, for example
a merge stopped inside a rebase.
merge_heads: Vec<ObjectId>The commits being merged (MERGE_HEAD); empty when no merge is in progress.
merge_message: Option<String>The prepared merge or sequencer commit message (MERGE_MSG).
cherry_pick_head: Option<ObjectId>The commit being picked (CHERRY_PICK_HEAD); None when absent or malformed.
revert_head: Option<ObjectId>The commit being reverted (REVERT_HEAD); None when absent or malformed.
orig_head: Option<ObjectId>The commit HEAD was on before the last reset, merge or rebase (ORIG_HEAD).
Implementations§
Trait Implementations§
Source§impl Clone for OperationState
impl Clone for OperationState
Source§impl Debug for OperationState
impl Debug for OperationState
Source§impl Default for OperationState
impl Default for OperationState
impl Eq for OperationState
Source§impl PartialEq for OperationState
impl PartialEq for OperationState
impl StructuralPartialEq for OperationState
Auto Trait Implementations§
impl Forget for OperationState
impl Freeze for OperationState
impl RefUnwindSafe for OperationState
impl Send for OperationState
impl Sync for OperationState
impl Unpin for OperationState
impl UnsafeUnpin for OperationState
impl UnwindSafe for OperationState
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
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§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
key and return true if they are equal.