I've finished this up and completed the tests as well. Just as read-cache.c says, i-t-a entries should never match the worktree - therefore, apply --index always fails. Raymond E. Pasco (3): apply: allow "new file" patches on i-t-a entries apply: make i-t-a entries never match worktree t4140: test apply with i-t-a paths apply.c | 26 ++++++++++++++++---- t/t4140-apply-ita.sh | 56 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 t/t4140-apply-ita.sh -- 2.28.0.2.g72bf77540a.dirty