diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-02-13 17:54:36 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-03-17 19:13:40 +1100 |
commit | bef26b9634a6a4c85028dcb1577161ed2c662b4e (patch) | |
tree | e5c9173615857bbd1e2c683f3189d63d68bd0d95 /pkg/gui/context/local_commits_context.go | |
parent | 574c5ca0de046fc0572e722822db3bfbddff4d10 (diff) |
add common commit controller
Diffstat (limited to 'pkg/gui/context/local_commits_context.go')
-rw-r--r-- | pkg/gui/context/local_commits_context.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/gui/context/local_commits_context.go b/pkg/gui/context/local_commits_context.go index 408a906ba..1937995ff 100644 --- a/pkg/gui/context/local_commits_context.go +++ b/pkg/gui/context/local_commits_context.go @@ -82,6 +82,10 @@ func NewLocalCommitsViewModel(getModel func() []*models.Commit) *LocalCommitsVie return self } +func (self *LocalCommitsContext) CanRebase() bool { + return true +} + func (self *LocalCommitsViewModel) GetItemsLength() int { return len(self.getModel()) } |