mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
show namesake for child views
This commit is contained in:
@ -65,3 +65,13 @@ func (self *BranchesContext) GetSelectedRefName() string {
|
||||
|
||||
return item.RefName()
|
||||
}
|
||||
|
||||
func (self *BranchesContext) GetSelectedDescription() string {
|
||||
item := self.GetSelected()
|
||||
|
||||
if item == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return item.Description()
|
||||
}
|
||||
|
Reference in New Issue
Block a user