2009-01-01 16:39:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
test_description='patience diff algorithm'
|
|
|
|
|
2021-10-30 22:24:19 +00:00
|
|
|
TEST_PASSES_SANITIZE_LEAK=true
|
2009-01-01 16:39:17 +00:00
|
|
|
. ./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
|