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-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-4.6 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW,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 1C7241F8C6 for ; Fri, 20 Aug 2021 18:31:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237068AbhHTSbn (ORCPT ); Fri, 20 Aug 2021 14:31:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235793AbhHTSbl (ORCPT ); Fri, 20 Aug 2021 14:31:41 -0400 Received: from host1.jankratochvil.net (host1.jankratochvil.net [IPv6:2a02:2b88:6:3b57::1f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B350C061575 for ; Fri, 20 Aug 2021 11:31:02 -0700 (PDT) Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.16.1/8.16.1) with ESMTPS id 17KIUsJZ023745 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Fri, 20 Aug 2021 20:30:54 +0200 DKIM-Filter: OpenDKIM Filter v2.11.0 host1.jankratochvil.net 17KIUsJZ023745 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jankratochvil.net; s=default; t=1629484254; bh=tpwSOdG0uooJbWakxdaYnGsCaZUmFUzFdAETJEvxusI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Omv8YXXCsHDViMo+iW1V24D02QoRQq18row0U0oqP+ma7w9OxNbC3gFVxCbgF5V8g zCnjhepDdshjbI5OL64VeAju0QnfhJtR4FQ41DLCaqiJXmIDK9X1AtZj20eRfx99UM YZ/U8mecWmjSOAPpjS4GwI6Dwwq7mY0e+A+U4tQU= Received: (from lace@localhost) by host1.jankratochvil.net (8.16.1/8.16.1/Submit) id 17KIUrEj023744; Fri, 20 Aug 2021 20:30:53 +0200 Date: Fri, 20 Aug 2021 20:30:53 +0200 From: Jan Kratochvil To: Junio C Hamano Cc: Bagas Sanjaya , git@vger.kernel.org Subject: Re: bugreport: git apply -3 confusing "lacks the necessary blob" Message-ID: References: <73a31988-d298-0168-43d5-849f91366d7d@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.7 (2021-05-04) Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Fri, 20 Aug 2021 19:40:12 +0200, Junio C Hamano wrote: > But I think Jan is talking about the case where users get a patch > that lacks the "index" information out of other people's "diff" > implementation and try to "apply -3" without realizing that it is > not Git's "diff" output. Yes. > Perhaps something like the attached patch would be a good start. It does fix the problem for me, thanks! Jan