summaryrefslogtreecommitdiffstats
path: root/pkg/gui/undoing.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2021-03-31 23:55:06 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-04-02 11:00:15 +1100
commit7d62f103e4a1b39b7e8fbd0e1f39815c525cd588 (patch)
tree83e331beeee07d066c76580e044234f18063a0a7 /pkg/gui/undoing.go
parent9e85d37fb949bbc83f28cb079f2ac4b45ae895ce (diff)
big refactor to give our enums actual types
Diffstat (limited to 'pkg/gui/undoing.go')
-rw-r--r--pkg/gui/undoing.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/undoing.go b/pkg/gui/undoing.go
index 4fdfba0f5..6379937c7 100644
--- a/pkg/gui/undoing.go
+++ b/pkg/gui/undoing.go
@@ -17,15 +17,17 @@ import (
// the reflog will read UUCBA, and when I read the first two undos, I know to skip the following
// two user actions, meaning we end up undoing reflog entry C. Redoing works in a similar way.
+type ReflogActionKind int
+
const (
- CHECKOUT = iota
+ CHECKOUT ReflogActionKind = iota
COMMIT
REBASE
CURRENT_REBASE
)
type reflogAction struct {
- kind int // one of CHECKOUT, REBASE, and COMMIT
+ kind ReflogActionKind
from string
to string
}