2009-01-01 19:39:17 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='patience diff algorithm'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
2011-07-07 08:23:58 +04:00
|
|
|
. "$TEST_DIRECTORY"/lib-diff-alternative.sh
|
2009-01-01 19:39:17 +03:00
|
|
|
|
2016-07-09 10:23:55 +03:00
|
|
|
test_expect_success '--ignore-space-at-eol with a single appended character' '
|
2016-07-09 10:23:50 +03:00
|
|
|
printf "a\nb\nc\n" >pre &&
|
|
|
|
printf "a\nbX\nc\n" >post &&
|
|
|
|
test_must_fail git diff --no-index \
|
|
|
|
--patience --ignore-space-at-eol pre post >diff &&
|
|
|
|
grep "^+.*X" diff
|
|
|
|
'
|
|
|
|
|
2011-07-07 08:23:58 +04:00
|
|
|
test_diff_frobnitz "patience"
|
2009-01-01 19:39:17 +03:00
|
|
|
|
2011-07-07 08:23:58 +04:00
|
|
|
test_diff_unique "patience"
|
2009-01-01 19:39:17 +03:00
|
|
|
|
|
|
|
test_done
|