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