pub enum NextStep {
ResolveConflicts,
StageResolved,
Commit,
Abort(InProgressOperation),
Continue(InProgressOperation),
Skip(InProgressOperation),
ContinueWithGit(InProgressOperation),
}Expand description
A suggested follow-up action while an operation is paused.
Variants§
ResolveConflicts
Edit conflicted files in the worktree (inspect with grit diff).
StageResolved
Stage resolved paths after editing.
Commit
Record the merge or sequencer result.
Abort(InProgressOperation)
Cancel the in-progress operation.
Continue(InProgressOperation)
Advance a sequencer operation after conflicts are resolved.
Skip(InProgressOperation)
Skip the current sequencer step.
ContinueWithGit(InProgressOperation)
Advance an operation that git started and only git can resume (for example a
rebase without grit’s plan).
Implementations§
Source§impl NextStep
impl NextStep
Sourcepub fn command(&self) -> Option<String>
pub fn command(&self) -> Option<String>
Render the suggested invocation: the Self::grit_command when grit implements the
step, otherwise the Self::git_command for operations only git can finish.
Sourcepub fn git_command(&self) -> Option<String>
pub fn git_command(&self) -> Option<String>
Render the git invocation for Self::ContinueWithGit; None for every other step.
Sourcepub fn grit_command(&self) -> Option<String>
pub fn grit_command(&self) -> Option<String>
Render a non-interactive grit invocation for this step, when one exists.
Trait Implementations§
impl Eq for NextStep
impl StructuralPartialEq for NextStep
Auto Trait Implementations§
impl Freeze for NextStep
impl RefUnwindSafe for NextStep
impl Send for NextStep
impl Sync for NextStep
impl Unpin for NextStep
impl UnsafeUnpin for NextStep
impl UnwindSafe for NextStep
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§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.