diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2020-05-25 12:31:46 +0200 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2020-05-25 16:16:49 +0200 |
commit | 63d3bf5661c78f38b238780ad8709b0176bd1541 (patch) | |
tree | 970eb050eee10b1f0c924fcb4c5d30e97e771ab7 /src/queue.rs | |
parent | 01a354e171ee0683028ee7b49d6520776e61d576 (diff) |
Support stash-apply,stash-drop
Diffstat (limited to 'src/queue.rs')
-rw-r--r-- | src/queue.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/queue.rs b/src/queue.rs index 929b8cef..d0d0f19c 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -1,4 +1,5 @@ use crate::tabs::StashingOptions; +use asyncgit::sync::CommitId; use bitflags::bitflags; use std::{cell::RefCell, collections::VecDeque, rc::Rc}; @@ -23,11 +24,17 @@ pub struct ResetItem { } /// +pub enum Action { + Reset(ResetItem), + StashDrop(CommitId), +} + +/// pub enum InternalEvent { /// - ConfirmResetItem(ResetItem), + ConfirmAction(Action), /// - ResetItem(ResetItem), + ConfirmedAction(Action), /// AddHunk(u64), /// @@ -38,6 +45,8 @@ pub enum InternalEvent { OpenCommit, /// PopupStashing(StashingOptions), + /// + TabSwitch, } /// |