mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-15 00:15:32 +02:00
show namesake for child views
This commit is contained in:
@ -12,6 +12,7 @@ type CanSwitchToDiffFiles interface {
|
||||
types.Context
|
||||
CanRebase() bool
|
||||
GetSelectedRefName() string
|
||||
GetSelectedDescription() string
|
||||
}
|
||||
|
||||
type SwitchToDiffFilesController struct {
|
||||
@ -63,9 +64,10 @@ func (self *SwitchToDiffFilesController) checkSelected(callback func(string) err
|
||||
|
||||
func (self *SwitchToDiffFilesController) enter(refName string) error {
|
||||
return self.viewFiles(SwitchToCommitFilesContextOpts{
|
||||
RefName: refName,
|
||||
CanRebase: self.context.CanRebase(),
|
||||
Context: self.context,
|
||||
RefName: refName,
|
||||
RefDescription: self.context.GetSelectedDescription(),
|
||||
CanRebase: self.context.CanRebase(),
|
||||
Context: self.context,
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user