Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Comparison between Git diff algorithms: myers (default) vs. patience (example favors myers)
diff --git a/file.txt b/file.txt
index 3299d68..accc3bd 100644
--- a/file.txt
+++ b/file.txt
@@ -1,7 +1,7 @@
+abc
aaaaaa
aaaaaa
bbbbbb
bbbbbb
cccccc
cccccc
-abc
diff --git a/file.txt b/file.txt
index 3299d68..accc3bd 100644
--- a/file.txt
+++ b/file.txt
@@ -1,7 +1,7 @@
-aaaaaa
-aaaaaa
-bbbbbb
-bbbbbb
-cccccc
-cccccc
abc
+aaaaaa
+aaaaaa
+bbbbbb
+bbbbbb
+cccccc
+cccccc
aaaaaa
aaaaaa
bbbbbb
bbbbbb
cccccc
cccccc
abc
abc
aaaaaa
aaaaaa
bbbbbb
bbbbbb
cccccc
cccccc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment