mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-08-09 09:22:48 +03:00
Concatenate patches to apply them all at once
This fixes the problem that patching would stop at the first file that has a conflict. We always want to patch all files. Also, it's faster for large patches, and the code is a little bit simpler too.
This commit is contained in:
@@ -52,7 +52,7 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.ExpectPopup().Alert().
|
||||
Title(Equals("Error")).
|
||||
Content(Contains("Applied patch to 'file1' with conflicts.").
|
||||
DoesNotContain("Applied patch to 'file2' cleanly.")).
|
||||
Contains("Applied patch to 'file2' cleanly.")).
|
||||
Confirm()
|
||||
|
||||
t.Views().Files().
|
||||
@@ -79,6 +79,7 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Focus().
|
||||
Lines(
|
||||
Contains("M").Contains("file1").IsSelected(),
|
||||
Contains("M").Contains("file2"),
|
||||
)
|
||||
|
||||
t.Views().Main().
|
||||
|
Reference in New Issue
Block a user