mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-03-21 21:47:32 +02:00
Added check to invoke continue/refresh
This commit is contained in:
parent
7a7e885773
commit
e39d2ed44b
@ -108,17 +108,16 @@ func (gui *Gui) handleRebase(g *gocui.Gui, v *gocui.View) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if err := gui.GitCommand.RebaseBranch(selectedBranch); err != nil {
|
if err := gui.GitCommand.RebaseBranch(selectedBranch); err != nil {
|
||||||
|
gui.Log.Errorln(err)
|
||||||
if err := gui.createConfirmationPanel(g, v, "Rebase failed", "Rebasing failed, would you like to resolve it?",
|
if err := gui.createConfirmationPanel(g, v, "Rebase failed", "Rebasing failed, would you like to resolve it?",
|
||||||
func(g *gocui.Gui, v *gocui.View) error {
|
func(g *gocui.Gui, v *gocui.View) error {
|
||||||
return nil
|
return nil
|
||||||
},
|
}, func(g *gocui.Gui, v *gocui.View) error {
|
||||||
func(g *gocui.Gui, v *gocui.View) error {
|
|
||||||
return gui.GitCommand.AbortRebaseBranch()
|
return gui.GitCommand.AbortRebaseBranch()
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.Log.Println("Reached refresh")
|
|
||||||
return gui.refreshSidePanels(g)
|
return gui.refreshSidePanels(g)
|
||||||
}, nil)
|
}, nil)
|
||||||
}
|
}
|
||||||
|
@ -256,5 +256,9 @@ func (gui *Gui) handleCompleteMerge(g *gocui.Gui) error {
|
|||||||
}
|
}
|
||||||
gui.stageSelectedFile(g)
|
gui.stageSelectedFile(g)
|
||||||
gui.refreshFiles(g)
|
gui.refreshFiles(g)
|
||||||
|
if rebase, err := gui.GitCommand.IsInRebaseState(); rebase && err == nil {
|
||||||
|
gui.GitCommand.ContinueRebaseBranch()
|
||||||
|
gui.refreshSidePanels(g)
|
||||||
|
}
|
||||||
return gui.switchFocus(g, nil, filesView)
|
return gui.switchFocus(g, nil, filesView)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user