mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
show namesake for child views
This commit is contained in:
@ -93,6 +93,16 @@ func (self *LocalCommitsContext) GetSelectedRefName() string {
|
||||
return item.RefName()
|
||||
}
|
||||
|
||||
func (self *LocalCommitsViewModel) GetSelectedDescription() string {
|
||||
item := self.GetSelected()
|
||||
|
||||
if item == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return item.Description()
|
||||
}
|
||||
|
||||
func (self *LocalCommitsViewModel) SetLimitCommits(value bool) {
|
||||
self.limitCommits = value
|
||||
}
|
||||
|
Reference in New Issue
Block a user