add common commit controller

This commit is contained in:
Jesse Duffield
2022-02-13 17:54:36 +11:00
parent 574c5ca0de
commit bef26b9634
8 changed files with 106 additions and 39 deletions

View File

@@ -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())
}