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

@@ -58,6 +58,10 @@ func (self *ReflogCommitsContext) GetSelectedItemId() string {
return item.ID()
}
func (self *ReflogCommitsContext) CanRebase() bool {
return false
}
type ReflogCommitsViewModel struct {
*traits.ListCursor
getModel func() []*models.Commit