summaryrefslogtreecommitdiff
path: root/t/t4015-diff-whitespace.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-10-17 04:29:19 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-10-17 04:29:19 (GMT)
commit91ccfb85176fbe2ed416751ff7884cdaf61311cb (patch)
tree751cf5f7235e9a2eb10521a3224178500b01472a /t/t4015-diff-whitespace.sh
parentd1114d87c73c78a936975bef5f15e2cde639336d (diff)
parentfa5ba2c1dd0ce1bd060f423e7b1eb39d06fcd2cd (diff)
downloadgit-91ccfb85176fbe2ed416751ff7884cdaf61311cb.zip
git-91ccfb85176fbe2ed416751ff7884cdaf61311cb.tar.gz
git-91ccfb85176fbe2ed416751ff7884cdaf61311cb.tar.bz2
Merge branch 'sb/diff-color-move'
A recently added "--color-moved" feature of "diff" fell into infinite loop when ignoring whitespace changes, which has been fixed. * sb/diff-color-move: diff: fix infinite loop with --color-moved --ignore-space-change
Diffstat (limited to 't/t4015-diff-whitespace.sh')
-rwxr-xr-xt/t4015-diff-whitespace.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t4015-diff-whitespace.sh b/t/t4015-diff-whitespace.sh
index bd0f75d..87083f7 100755
--- a/t/t4015-diff-whitespace.sh
+++ b/t/t4015-diff-whitespace.sh
@@ -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