mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
show namesake for child views
This commit is contained in:
parent
13b90ac37f
commit
ad7703df65
32 changed files with 766 additions and 649 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue