summaryrefslogtreecommitdiffstats
path: root/pkg/gui/diffing.go
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-03-26 22:18:08 +0900
committerJesse Duffield <jessedduffield@gmail.com>2022-04-02 17:04:42 +1100
commit4835fc00b861c6117c1d4d6873a05d808e54b4cf (patch)
tree6f521eb16da8c9310cab776d6b57e84de32d4752 /pkg/gui/diffing.go
parent30be50b641dbe594d7968e79536028f22beee1b0 (diff)
introduce Ref interface
Diffstat (limited to 'pkg/gui/diffing.go')
-rw-r--r--pkg/gui/diffing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/diffing.go b/pkg/gui/diffing.go
index daa659f7f..6e1b2bdeb 100644
--- a/pkg/gui/diffing.go
+++ b/pkg/gui/diffing.go
@@ -44,7 +44,7 @@ func (gui *Gui) currentDiffTerminals() []string {
// TODO: should we just return nil here?
return []string{""}
case *context.CommitFilesContext:
- return []string{v.GetRefName()}
+ return []string{v.GetRef().RefName()}
case *context.BranchesContext:
// for our local branches we want to include both the branch and its upstream
branch := gui.State.Contexts.Branches.GetSelected()