aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-09-07 23:45:40 -0700
committerJunio C Hamano <gitster@pobox.com>2008-09-07 23:45:40 -0700
commitfdfb4cfadcfdfe4ebafd0545b5ebb661433ea66c (patch)
tree6aa57e5f061a32801c706496357f020556cff200 /t
parent11bd3ddb913afd9665e7e822ea54be4fc8d2d5ea (diff)
parent392809702016cde59d50a7b07e8c27f6d0ec3c3f (diff)
downloadgit-fdfb4cfadcfdfe4ebafd0545b5ebb661433ea66c.tar.gz
git-fdfb4cfadcfdfe4ebafd0545b5ebb661433ea66c.tar.xz
Merge branch 'jc/hide-cr-in-diff-from-less'
* jc/hide-cr-in-diff-from-less: diff: Help "less" hide ^M from the output
Diffstat (limited to 't')
-rwxr-xr-xt/t4019-diff-wserror.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t4019-diff-wserror.sh b/t/t4019-diff-wserror.sh
index 7eae1f450..84a1fe311 100755
--- a/t/t4019-diff-wserror.sh
+++ b/t/t4019-diff-wserror.sh
@@ -178,4 +178,16 @@ test_expect_success 'trailing empty lines (2)' '
'
+test_expect_success 'do not color trailing cr in context' '
+ git config --unset core.whitespace
+ rm -f .gitattributes &&
+ echo AAAQ | tr Q "\015" >G &&
+ git add G &&
+ echo BBBQ | tr Q "\015" >>G
+ git diff --color G | tr "\015" Q >output &&
+ grep "BBB.*${blue_grep}Q" output &&
+ grep "AAA.*\[mQ" output
+
+'
+
test_done