summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/local_commits_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-02-13 17:54:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-17 19:13:40 +1100
commitbef26b9634a6a4c85028dcb1577161ed2c662b4e (patch)
treee5c9173615857bbd1e2c683f3189d63d68bd0d95 /pkg/gui/controllers/local_commits_controller.go
parent574c5ca0de046fc0572e722822db3bfbddff4d10 (diff)
add common commit controller
Diffstat (limited to 'pkg/gui/controllers/local_commits_controller.go')
-rw-r--r--pkg/gui/controllers/local_commits_controller.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/pkg/gui/controllers/local_commits_controller.go b/pkg/gui/controllers/local_commits_controller.go
index d071ab3fb..694d7396f 100644
--- a/pkg/gui/controllers/local_commits_controller.go
+++ b/pkg/gui/controllers/local_commits_controller.go
@@ -163,11 +163,6 @@ func (self *LocalCommitsController) GetKeybindings(opts types.KeybindingsOpts) [
Description: self.c.Tr.LcResetToThisCommit,
},
{
- Key: opts.GetKey(opts.Config.Universal.GoInto),
- Handler: self.checkSelected(self.enter),
- Description: self.c.Tr.LcViewCommitFiles,
- },
- {
Key: opts.GetKey(opts.Config.Commits.CheckoutCommit),
Handler: self.checkSelected(self.handleCheckoutCommit),
Description: self.c.Tr.LcCheckoutCommit,
@@ -516,14 +511,6 @@ func (self *LocalCommitsController) afterRevertCommit() error {
})
}
-func (self *LocalCommitsController) enter(commit *models.Commit) error {
- return self.switchToCommitFilesContext(SwitchToCommitFilesContextOpts{
- RefName: commit.Sha,
- CanRebase: true,
- Context: self.context(),
- })
-}
-
func (self *LocalCommitsController) handleCreateFixupCommit(commit *models.Commit) error {
prompt := utils.ResolvePlaceholderString(
self.c.Tr.SureCreateFixupCommit,