mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Mention which command is continued in PromptToContinueRebase
When you are in the middle of a rebase, and you cherry-pick a commit which conflicts, it helps to be clear on whether you are prompted to continue the cherry-pick or the rebase.
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
package components
|
||||
|
||||
import "fmt"
|
||||
|
||||
// for running common actions
|
||||
type Common struct {
|
||||
t *TestDriver
|
||||
@ -43,10 +45,10 @@ func (self *Common) AcknowledgeConflicts() {
|
||||
Confirm()
|
||||
}
|
||||
|
||||
func (self *Common) ContinueOnConflictsResolved() {
|
||||
func (self *Common) ContinueOnConflictsResolved(command string) {
|
||||
self.t.ExpectPopup().Confirmation().
|
||||
Title(Equals("Continue")).
|
||||
Content(Contains("All merge conflicts resolved. Continue?")).
|
||||
Content(Contains(fmt.Sprintf("All merge conflicts resolved. Continue the %s?", command))).
|
||||
Confirm()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user