Merge branch 'sb/diff-color-move'
[gitweb.git] / t / t4015-diff-whitespace.sh
index bd0f75d9f726c10f561937bb28403d4c8cefb25e..87083f728fed1be9d93d971419ac533ee5314d4f 100755 (executable)
@@ -1530,4 +1530,13 @@ test_expect_success 'move detection with submodules' '
        test_cmp expect decoded_actual
 '
 
+test_expect_success 'move detection with whitespace changes' '
+       test_when_finished "git reset --hard" &&
+       test_seq 10 >test &&
+       git add test &&
+       sed s/3/42/ <test >test.tmp &&
+       mv test.tmp test &&
+       git -c diff.colormoved diff --ignore-space-change -- test
+'
+
 test_done