summaryrefslogtreecommitdiffstats
path: root/pkg/gui/custom_commands.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-26 17:50:22 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-27 09:49:30 +1000
commit266d8bf0d5d3797c8fc97a29ccc0aad9229b6d58 (patch)
tree9ada51904547a54149169ab15b8a4f3d4a57bcb4 /pkg/gui/custom_commands.go
parentda8eac5538b236e4b79e3bab6465e8d5666c48e0 (diff)
minor fixup
Diffstat (limited to 'pkg/gui/custom_commands.go')
-rw-r--r--pkg/gui/custom_commands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go
index 190fc5586..7181ec2e2 100644
--- a/pkg/gui/custom_commands.go
+++ b/pkg/gui/custom_commands.go
@@ -20,7 +20,7 @@ type CustomCommandObjects struct {
SelectedTag *commands.Tag
SelectedStashEntry *commands.StashEntry
SelectedCommitFile *commands.CommitFile
- CurrentBranch *commands.Branch
+ CheckedOutBranch *commands.Branch
}
func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func() error {
@@ -36,7 +36,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func(
SelectedStashEntry: gui.getSelectedStashEntry(),
SelectedCommitFile: gui.getSelectedCommitFile(),
SelectedSubCommit: gui.getSelectedSubCommit(),
- CurrentBranch: gui.currentBranch(),
+ CheckedOutBranch: gui.currentBranch(),
}
tmpl, err := template.New("custom command template").Parse(customCommand.Command)