From 4835fc00b861c6117c1d4d6873a05d808e54b4cf Mon Sep 17 00:00:00 2001 From: Ryooooooga Date: Sat, 26 Mar 2022 22:18:08 +0900 Subject: introduce Ref interface --- pkg/gui/diffing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/gui/diffing.go') 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() -- cgit v1.2.3