]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t3701-add-interactive.sh
t2060: add a test for switch with --orphan and --discard-changes
[thirdparty/git.git] / t / t3701-add-interactive.sh
index e36fd0a5d36a23bf2eb3f1db07d8abe8fdfee908..5bae6e50f1f3e76c1615bf5e3031e99f92d619b9 100755 (executable)
@@ -553,6 +553,19 @@ test_expect_success 'diffs can be colorized' '
        grep "$(printf "\\033")" output
 '
 
+test_expect_success 'colorized diffs respect diff.wsErrorHighlight' '
+       git reset --hard &&
+
+       echo "old " >test &&
+       git add test &&
+       echo "new " >test &&
+
+       printf y >y &&
+       force_color git -c diff.wsErrorHighlight=all add -p >output.raw 2>&1 <y &&
+       test_decode_color <output.raw >output &&
+       grep "old<" output
+'
+
 test_expect_success 'diffFilter filters diff' '
        git reset --hard &&