From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 49EAC1F9E0 for ; Fri, 7 Aug 2020 03:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726402AbgHGDua (ORCPT ); Thu, 6 Aug 2020 23:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726078AbgHGDu3 (ORCPT ); Thu, 6 Aug 2020 23:50:29 -0400 Received: from out1.migadu.com (out1.migadu.com [IPv6:2001:41d0:2:863f::]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 670A6C061574 for ; Thu, 6 Aug 2020 20:50:28 -0700 (PDT) Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ameretat.dev; s=default; t=1596772226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=jcGMQgzd3Wnk7MlRTQ0sPlCADHy6fR1FIJS4eNydueQ=; b=jHmYyIsGK7Y38vCDSmEk8nGBn8FsQEkNJ54Y7TXWohEmKdeOdUJkDw8ejmqto0k+osXfYd 5CvEBN1aBg8doCS2+5CLeWfr3n85Bc6IhJQUeILtXPS2Pt3TgpQLYhoRFFhwsdovDU2TTK x7U3FGhxUE15s365YmHuW4SplsG/PP4= Content-Type: text/plain; charset=UTF-8 Cc: Subject: Re: [PATCH v4 3/3] t4140: test apply with i-t-a paths X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Raymond E. Pasco" To: "Junio C Hamano" Date: Thu, 06 Aug 2020 23:44:11 -0400 Message-Id: In-Reply-To: Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Thu Aug 6, 2020 at 5:07 PM EDT, Junio C Hamano wrote: > 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.)