t4140: test apply with i-t-a paths
authorRaymond E. Pasco <ray@ameretat.dev>
Sat, 8 Aug 2020 07:49:59 +0000 (03:49 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Aug 2020 18:00:46 +0000 (11:00 -0700)
commit4c025c667ee29dd5e9260f423e8b0b3cc37e5e8c
tree674331549921085aebc6cbe72617b41d288f7458
parente3cc41b4f939a64c74b6d4a2d59f6efe006c4e4b
t4140: test apply with i-t-a paths

apply --cached (as used by add -p) should accept creation and deletion
patches to intent-to-add paths in the index. apply --index, however,
should always fail because an intent-to-add path never matches the
worktree (by definition).

Based-on-patch-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Raymond E. Pasco <ray@ameretat.dev>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t4140-apply-ita.sh [new file with mode: 0755]