mirror of
https://github.com/git/git.git
synced 2026-03-21 22:20:07 +01:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user