summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/types.go
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2022-03-26 22:18:08 +0900
committerJesse Duffield <jessedduffield@gmail.com>2022-04-02 17:04:42 +1100
commit4835fc00b861c6117c1d4d6873a05d808e54b4cf (patch)
tree6f521eb16da8c9310cab776d6b57e84de32d4752 /pkg/gui/controllers/types.go
parent30be50b641dbe594d7968e79536028f22beee1b0 (diff)
introduce Ref interface
Diffstat (limited to 'pkg/gui/controllers/types.go')
-rw-r--r--pkg/gui/controllers/types.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/pkg/gui/controllers/types.go b/pkg/gui/controllers/types.go
index e9af41089..f719b5de0 100644
--- a/pkg/gui/controllers/types.go
+++ b/pkg/gui/controllers/types.go
@@ -6,12 +6,8 @@ import (
// all fields mandatory (except `CanRebase` because it's boolean)
type SwitchToCommitFilesContextOpts struct {
- // this is something like a commit sha or branch name
- RefName string
-
- // this will be displayed in the title of the view so we know whose diff files
- // we're viewing
- RefDescription string
+ // this is something like a commit or branch
+ Ref types.Ref
// from the local commits view we're allowed to do rebase stuff with any patch
// we generate from the diff files context, but we don't have that same ability