Merge branch 'jp/fetch-cull-many-refs'
[gitweb.git] / t / t4019-diff-wserror.sh
index 1517fff9c64f711a6fd3dda6361a338d0e1fdfe0..3a3663fbcb4795a9e3755fe831c89a7e312f659e 100755 (executable)
@@ -190,4 +190,13 @@ test_expect_success 'do not color trailing cr in context' '
 
 '
 
+test_expect_success 'color new trailing blank lines' '
+       { echo a; echo b; echo; echo; } >x &&
+       git add x &&
+       { echo a; echo; echo; echo; echo c; echo; echo; echo; echo; } >x &&
+       git diff --color x >output &&
+       cnt=$(grep "${blue_grep}" output | wc -l) &&
+       test $cnt = 2
+'
+
 test_done