summaryrefslogtreecommitdiffstats
path: root/pkg/gui/keybindings.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2019-11-17 14:04:57 +1100
committerJesse Duffield <jessedduffield@gmail.com>2019-11-21 22:07:14 +1100
commitdcb52857976762378b0e69bd45581231aa334482 (patch)
treebb8bd788b151d503f3b3a3cbc93aaeef93bec2b4 /pkg/gui/keybindings.go
parenta9cd647075119c760ca22cceba8c4ad14687b732 (diff)
support rebasing onto remote branch
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r--pkg/gui/keybindings.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go
index 88e35bc5c..85678b6ad 100644
--- a/pkg/gui/keybindings.go
+++ b/pkg/gui/keybindings.go
@@ -383,7 +383,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Contexts: []string{"local-branches"},
Key: 'r',
Modifier: gocui.ModNone,
- Handler: gui.handleRebase,
+ Handler: gui.handleRebaseOntoLocalBranch,
Description: gui.Tr.SLocalize("rebaseBranch"),
},
{
@@ -1082,6 +1082,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Description: gui.Tr.SLocalize("deleteBranch"),
},
{
+ ViewName: "branches",
+ Contexts: []string{"remote-branches"},
+ Key: 'r',
+ Modifier: gocui.ModNone,
+ Handler: gui.handleRebaseOntoRemoteBranch,
+ Description: gui.Tr.SLocalize("rebaseBranch"),
+ },
+ {
ViewName: "commits",
Key: gocui.MouseLeft,
Modifier: gocui.ModNone,