summaryrefslogtreecommitdiffstats
path: root/pkg/gui/custom_commands.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/custom_commands.go')
-rw-r--r--pkg/gui/custom_commands.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go
index 45713968e..8111dd06c 100644
--- a/pkg/gui/custom_commands.go
+++ b/pkg/gui/custom_commands.go
@@ -44,16 +44,16 @@ func (gui *Gui) resolveTemplate(templateStr string, promptResponses []string) (s
objects := CustomCommandObjects{
SelectedFile: gui.getSelectedFile(),
SelectedPath: gui.getSelectedPath(),
- SelectedLocalCommit: gui.getSelectedLocalCommit(),
- SelectedReflogCommit: gui.getSelectedReflogCommit(),
- SelectedLocalBranch: gui.getSelectedBranch(),
- SelectedRemoteBranch: gui.getSelectedRemoteBranch(),
- SelectedRemote: gui.getSelectedRemote(),
- SelectedTag: gui.State.Contexts.Tags.GetSelectedTag(),
- SelectedStashEntry: gui.getSelectedStashEntry(),
+ SelectedLocalCommit: gui.State.Contexts.BranchCommits.GetSelected(),
+ SelectedReflogCommit: gui.State.Contexts.ReflogCommits.GetSelected(),
+ SelectedLocalBranch: gui.State.Contexts.Branches.GetSelected(),
+ SelectedRemoteBranch: gui.State.Contexts.RemoteBranches.GetSelected(),
+ SelectedRemote: gui.State.Contexts.Remotes.GetSelected(),
+ SelectedTag: gui.State.Contexts.Tags.GetSelected(),
+ SelectedStashEntry: gui.State.Contexts.Stash.GetSelected(),
SelectedCommitFile: gui.getSelectedCommitFile(),
SelectedCommitFilePath: gui.getSelectedCommitFilePath(),
- SelectedSubCommit: gui.getSelectedSubCommit(),
+ SelectedSubCommit: gui.State.Contexts.SubCommits.GetSelected(),
CheckedOutBranch: gui.getCheckedOutBranch(),
PromptResponses: promptResponses,
}