git_stack/graph/
commit.rs1#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
2pub enum Action {
3 Pick,
4 Fixup,
5 Protected,
6}
7
8impl Action {
9 pub fn is_pick(&self) -> bool {
10 matches!(self, Action::Pick)
11 }
12
13 pub fn is_fixup(&self) -> bool {
14 matches!(self, Action::Fixup)
15 }
16
17 pub fn is_protected(&self) -> bool {
18 matches!(self, Action::Protected)
19 }
20}
21
22impl Default for Action {
23 fn default() -> Self {
24 Self::Pick
25 }
26}
27
28impl crate::any::ResourceTag for Action {}