I cannot find any real example where the --patience gives different result than the normal strategy.
Based on this answer, if I have this file:
.foo1 {
margin: 0;
}
.bar {
margin: 0;
}
and I update it in this way:
.bar {
margin: 0;
}
.foo1 {
margin: 0;
color: green;
}
I should see two different diffs depend which algorithm I'm using.
But for me the output of these commands is always the same
git diff --diff-algorithm=patience
git diff
diff --git a/foo.bar b/foo.bar
index 453dcb1..42cd4b4 100644
--- a/foo.bar
+++ b/foo.bar
@@ -1,7 +1,8 @@
-.foo1 {
+.bar {
margin: 0;
}
-.bar {
+.foo1 {
margin: 0;
+ color: green;
}
\ No newline at end of file
I'm using git version 2.14.2