1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

support rebasing onto remote branch

This commit is contained in:
Jesse Duffield
2019-11-17 14:04:57 +11:00
parent a9cd647075
commit dcb5285797
4 changed files with 26 additions and 10 deletions

View File

@ -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"),
},
{
@ -1081,6 +1081,14 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Handler: gui.handleDeleteRemoteBranch,
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,