Re: [PATCH v4 3/3] t4140: test apply with i-t-a paths
- From
Raymond E. Pasco <ray@ameretat.dev>
- Date
- Aug 7, 2020, 03:44 UTC
- Message-ID
- <C4QGDPQHMV1C.2LUL2YNOHAYTW@ziyou.local>
- In-Reply-To
- <xmqqeeojjxf0.fsf@gitster.c.googlers.com>
On Thu Aug 6, 2020 at 5:07 PM EDT, Junio C Hamano wrote:
Show 5 quoted lines
> We can delete an I-T-A entry. I wonder if > > git apply --cached -R creation-patch > > also serves as a way to remove the path? It should succeed, right?
It fails to apply because the inverse patch to creation-patch removes lines, while the i-t-a entry has no lines. (Looking at it from the other angle, deletion-patch doesn't delete lines, because there are none.)
(Of course, -R creation-patch after creation-patch removes the path cleanly.)