mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-25 22:32:13 +02:00
controller for viewing sub commits
This commit is contained in:
@@ -84,3 +84,12 @@ func (self *BranchesViewModel) GetSelected() *models.Branch {
|
||||
|
||||
return self.getModel()[self.GetSelectedLineIdx()]
|
||||
}
|
||||
|
||||
func (self *BranchesViewModel) GetSelectedRefName() string {
|
||||
item := self.GetSelected()
|
||||
if item == nil {
|
||||
return ""
|
||||
}
|
||||
|
||||
return item.RefName()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user