mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-29 22:48:24 +02:00
Add merge options menu
Replace merge-tool with merge options menu that allows resolving all conflicts for selected files as ours, theirs, or union, while still providing access to the merge tool.
This commit is contained in:
committed by
Stefan Haller
parent
1f002af06b
commit
703f053a7e
@@ -157,3 +157,20 @@ var CreateMergeConflictFileMultiple = func(shell *Shell) {
|
||||
|
||||
shell.RunCommandExpectError([]string{"git", "merge", "--no-edit", "second-change-branch"})
|
||||
}
|
||||
|
||||
var CreateMergeConflictFileForMergeFileTests = func(shell *Shell, originalFileContent string, currentChangeFileContent string, incomingChangeFileContent string) {
|
||||
shell.
|
||||
NewBranch("original-branch").
|
||||
EmptyCommit("one").
|
||||
CreateFileAndAdd("file", originalFileContent).
|
||||
Commit("original").
|
||||
NewBranch("current-change-branch").
|
||||
UpdateFileAndAdd("file", currentChangeFileContent).
|
||||
Commit("first change").
|
||||
Checkout("original-branch").
|
||||
NewBranch("incoming-change-branch").
|
||||
UpdateFileAndAdd("file", incomingChangeFileContent).
|
||||
Commit("second change").
|
||||
Checkout("current-change-branch").
|
||||
RunCommandExpectError([]string{"git", "merge", "--no-edit", "incoming-change-branch"})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user