summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/switch_to_diff_files_controller.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-03-26 14:44:30 +1100
committerJesse Duffield <jessedduffield@gmail.com>2022-03-26 18:00:46 +1100
commitad7703df65e09d23bb7e709ca9b22251673ac272 (patch)
tree67733bcebb87d6504c1d14368cb67a15acc36ecc /pkg/gui/controllers/switch_to_diff_files_controller.go
parent13b90ac37f40baa648c25fab6d299ae0fa59118b (diff)
show namesake for child views
Diffstat (limited to 'pkg/gui/controllers/switch_to_diff_files_controller.go')
-rw-r--r--pkg/gui/controllers/switch_to_diff_files_controller.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkg/gui/controllers/switch_to_diff_files_controller.go b/pkg/gui/controllers/switch_to_diff_files_controller.go
index 9a3111cae..c41dbdd37 100644
--- a/pkg/gui/controllers/switch_to_diff_files_controller.go
+++ b/pkg/gui/controllers/switch_to_diff_files_controller.go
@@ -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,
})
}