show namesake for child views

This commit is contained in:
Jesse Duffield 2022-03-26 14:44:30 +11:00
parent 13b90ac37f
commit ad7703df65
32 changed files with 766 additions and 649 deletions

View file

@ -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,
})
}