2009-01-01 17:39:17 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='patience diff algorithm'
|
|
|
|
|
|
|
|
. ./test-lib.sh
|
2011-07-07 06:23:58 +02:00
|
|
|
. "$TEST_DIRECTORY"/lib-diff-alternative.sh
|
2009-01-01 17:39:17 +01:00
|
|
|
|
2016-07-09 09:23:55 +02:00
|
|
|
test_expect_success '--ignore-space-at-eol with a single appended character' '
|
2016-07-09 09:23:50 +02: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 06:23:58 +02:00
|
|
|
test_diff_frobnitz "patience"
|
2009-01-01 17:39:17 +01:00
|
|
|
|
2011-07-07 06:23:58 +02:00
|
|
|
test_diff_unique "patience"
|
2009-01-01 17:39:17 +01:00
|
|
|
|
|
|
|
test_done
|