3 test_description
='git apply should exit non-zero with unrecognized input.'
7 test_expect_success
'setup' '
11 test_expect_success
'apply --check exits non-zero with unrecognized input' '
12 test_must_fail git apply --check - <<-\EOF
14 I look nothing like a patch
19 test_expect_success
'apply exits non-zero with no-op patch' '
22 index 6696ea4..606eddd 100644
28 test_must_fail git apply --stat input &&
29 test_must_fail git apply --check input
32 test_expect_success
'`apply --recount` allows no-op patch' '
34 git apply --recount --check <<-\EOF
36 index 6696ea4..606eddd 100644
44 test_expect_success
'invalid combination: create and copy' '
45 test_must_fail git apply --check - <<-\EOF
53 test_expect_success
'invalid combination: create and rename' '
54 test_must_fail git apply --check - <<-\EOF