summaryrefslogtreecommitdiffstats
path: root/pkg/gui/modes/diffing/diffing.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/modes/diffing/diffing.go')
-rw-r--r--pkg/gui/modes/diffing/diffing.go15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/gui/modes/diffing/diffing.go b/pkg/gui/modes/diffing/diffing.go
new file mode 100644
index 000000000..a5e103d62
--- /dev/null
+++ b/pkg/gui/modes/diffing/diffing.go
@@ -0,0 +1,15 @@
+package diffing
+
+// if ref is blank we're not diffing anything
+type Diffing struct {
+ Ref string
+ Reverse bool
+}
+
+func New() Diffing {
+ return Diffing{}
+}
+
+func (m *Diffing) Active() bool {
+ return m.Ref != ""
+}