diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 19:53:45 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 2d90e1e8ee5ccb3d2acd8678e68137645c9e65bd (patch) | |
tree | cb623a51873bd086967ea794b21210861ce5031e /pkg/gui/reflog_panel.go | |
parent | ddf25e14afe5ddfc2527149c54ea55ea2e83610a (diff) |
commit files kind of generalised
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r-- | pkg/gui/reflog_panel.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go index d14557599..7c6bcb766 100644 --- a/pkg/gui/reflog_panel.go +++ b/pkg/gui/reflog_panel.go @@ -119,12 +119,5 @@ func (gui *Gui) handleViewReflogCommitFiles() error { return nil } - gui.State.Panels.CommitFiles.refName = commit.Sha - gui.Contexts.CommitFiles.Context.SetParentContext(gui.Contexts.ReflogCommits.Context) - - if err := gui.refreshCommitFilesView(); err != nil { - return err - } - - return gui.switchContext(gui.Contexts.CommitFiles.Context) + return gui.switchToCommitFilesContext(commit.Sha, false, gui.Contexts.ReflogCommits.Context, "commits") } |