summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/types.go
blob: e9af41089b5fd39c03999bbbc5f1f1f82d095c56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package controllers

import (
	"github.com/jesseduffield/lazygit/pkg/gui/types"
)

// 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

	// 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
	// with say the sub commits context or the reflog context.
	CanRebase bool

	Context types.Context
}