git_stack/legacy/graph/actions.rs
1#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
2pub enum Action {
3 Pick,
4 Fixup,
5 Protected,
6 Delete,
7}
8
9impl Action {
10 pub fn is_pick(&self) -> bool {
11 matches!(self, Action::Pick)
12 }
13
14 pub fn is_fixup(&self) -> bool {
15 matches!(self, Action::Fixup)
16 }
17
18 pub fn is_protected(&self) -> bool {
19 matches!(self, Action::Protected)
20 }
21
22 pub fn is_delete(&self) -> bool {
23 matches!(self, Action::Delete)
24 }
25}