Commit Diff


commit - f71e8098324d6de96d593537a80b348d7f032e4d
commit + c5419a0537f77645e9b527a1fa97c2d7c2ecead9
blob - 1acfa698d7852914725eff21eebb0a9ebc77795b
blob + eb67565c358300506376e716dea9b9c42a2ed8a1
--- lib/diff_myers.c
+++ lib/diff_myers.c
@@ -263,6 +263,9 @@ static void diff_divide_myers_forward(struct diff_data
 		       && diff_atom_same(&left->atoms.head[x], &right->atoms.head[xk_to_y(x, k)]))
 		       x++;
 		kd_forward[k] = x;
+		if (x_before_slide != x) {
+			debug("  down %d similar lines\n", x - x_before_slide);
+		}
 
 		if (DEBUG) {
 			int fi;
@@ -511,6 +514,9 @@ static void diff_divide_myers_backward(struct diff_dat
 		       && diff_atom_same(&left->atoms.head[x-1], &right->atoms.head[xc_to_y(x, c, delta)-1]))
 			x--;
 		kd_backward[c] = x;
+		if (x_before_slide != x) {
+			debug("  up %d similar lines\n", x_before_slide - x);
+		}
 
 		if (DEBUG) {
 			int fi;