1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

include stash in commitish controller

This commit is contained in:
Jesse Duffield
2022-02-13 18:26:44 +11:00
parent e842d1bc9e
commit a643957f89
13 changed files with 135 additions and 113 deletions

View File

@ -86,6 +86,16 @@ func (self *LocalCommitsContext) CanRebase() bool {
return true
}
func (self *LocalCommitsContext) GetSelectedRefName() string {
item := self.GetSelected()
if item == nil {
return ""
}
return item.RefName()
}
func (self *LocalCommitsViewModel) GetItemsLength() int {
return len(self.getModel())
}