Article View: linux.kernel.git
Article #2576Re: [BUG] git apply: pure rename followed by edit fails with core.fileMode=false
From: Aniket Gupta
Date: Sat, 07 Nov 2026 05:47
Date: Sat, 07 Nov 2026 05:47
10 lines
11111 bytes
11111 bytes
Hey Junio. Yup. Two commits. Hannes feeds the whole format-patch output to a single git apply and separate invocations and git am work for him. Though applying several patches that touch the same path in one invocation is something git apply does on purpose. A pure rename followed by an edit worked that way before 0482c32c33 and still does with core.fileMode=true. It only breaks with =false. Thanks, Aniket
Technical Details
Message-ID:
<20261107054701.298961-1-aniketgupta3001@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74756-linux-kernel-git=dewy.ruReferences:
<xmqqfqxd9pru.fsf@gitster.g>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!git+bounces-74756-linux-kernel-git=dewy.ru
From: aniketgupta3001@gmail.com (Aniket Gupta)
Newsgroups: linux.kernel.git
Subject: Re: [BUG] git apply: pure rename followed by edit fails with core.fileMode=false
Date: Sat, 7 Nov 2026 05:47:01 +0000
Organization: Usenet Network
Message-ID: <20261107054701.298961-1-aniketgupta3001@gmail.com>
References: <xmqqfqxd9pru.fsf@gitster.g>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="4047856"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:PowDvpKkCu7JZ8LkcUvuloaGDYg= sha256:SdbKJpj3ZpGWqH+ROn0pa447At0zrcdmidYz7cpZXRU=
sha1:W1kG33u5yb90k4AhJ6iqeddK/tY= sha256:DnixyUr4qYL4WA+DXV5TVMskixmcwYsk12H3D5t3R8s=
List-ID: <git.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 108C41133C2; Sat, 7 Nov 2026 08:47:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.049
X-Spam-Status: No, score=-3.049 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id vVptt1hI25-k;
Sat, 7 Nov 2026 08:47:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-74756-linux-kernel-git=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id A021B1133BB; Sat, 7 Nov 2026 08:47:14 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sea.lore.kernel.org (Postfix) with ESMTP id CD0FA2D224; Sat, 7 Nov 2026 05:47:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
t=1794030429;
b=4KKhOrKbqXsraizaPFO31XSJkmmVABR/jAL9BJByfiPcOP/7Nc6ZUBA/pvSjPofXe7dR
cQP6hLE824mShBF2Q5VHc2YztWUZkiQQpbkqO+7fbZwpF557silS9AtKL0WmaCEpRMw4T
b9xqH7rak9TCP4pothNCjLZoxHYO4LZR0pnqlV8lMhV8V8JSPsFPqx36OuYAkYp+Ytxkm
C/YTWzlOZGtKTFwqzBIGQtBQOvrnJ+o6xeWYp6ynqQBJvxBUqKKn+ab6XoHTQc82VBecM
JNRlvU8tOJbKl2gCM+DEULrZeAamTXtY5arM4sakQqO2gS2ZTcMcwNdFedBjHAFsH/A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794030429;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
X-Gm-Gg:X-Received:Received:From:To:Cc:Subject:Date:Message-ID:
X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:List-Post:
List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
MIME-Version:Content-Transfer-Encoding;
bh=Akxn6ITUl7dhrZx4muWk5QNf1oo/AC75b2f255U7KLE=;
b=oIPDYorV2F/VagxT7U2Drvjv9KrzIn6ewbFcS0+Gz5nwLCR53kXRwFsxUErdULlzEKGq
yoBvvTHy/swsL8IMBLuKEvzEKAcsps5u1kRlOWSr3Ml/j8KpcA0EuMdoPOpRciima2u7j
8QGpU+0dyJx0WBbhXEWB/BiCIBdI1ngHerjrwSRbCz7X4UoerVm7C1nuceUzmnFFI9UcT
/qNQmtd0o/qensQYCjerLUU62C2oiwGXkj8JjU1bay3/PPvI12dnp5+LtFFEw12y4BxaK
A/cwmUx3hECeGgEOjgXYQ2DJtaxwXuw7FRFJ4HkuY4Qx4LnB2k6zIE36Ph+UTs5laOQ==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=o9fx2XbB;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 1BE61606A331;
Sat, 7 Nov 2026 05:47:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=o9fx2XbB
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.179
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794030428;
b=fQ8VrIjPBQMcyS03wEQmemMXtEasLk7XZ4YfgchLKRHAAd/o4BDerdxEwmW5f+UU7WyG
E/93aJ2xL51kRgKprqrgUpx6L8rmp3MMHs8VHT5uaGZc8HTJrTKTZ2spYVJ7eINwgEJVK
Hxy6KHT6HJLamU2eJErxGy7puzEr5pWZjjj83Ic6VlGNALPsJDpX7syHI3eMHevvttr6C
HNNKx6FyoNgnUWzPpw43qk8zHcOTbBtikPp+8zhjj5nmHy8z6UwMlgP8RURCv4tnAybaE
yzCfB8elB5WHRbp0BD5F5Flzk5YOi3e3eG1aNnJ4+NtuVVJyz8Z4aqUEah2Bl2j7Ozw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794030428;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References:
MIME-Version:Content-Transfer-Encoding;
bh=Akxn6ITUl7dhrZx4muWk5QNf1oo/AC75b2f255U7KLE=;
b=xhe3maQDuUNkRDFfqgaFJU5X/uhrnBtST5VpvL/I9y4NjN5hMjqYY8fwCf6scgk58XTF
WWZ24+sbTslrYsHd+jyIAOKzaVVOnW9M8sKxJaSSyd5QqHirWmgokLZh1Uo0vuCV373z3
9A+u8/8eTYJxWZB8wzzjstIct8cLI4s1MogsMCQ5+JdvRi9txq8Cio/m7orTmkJ8jG9q8
g+YKRD1bGj/xPL7GZKnWuHQsPTp30swR5xyarNcwkdIQUz3QEj/u106DJrneJGstEKv4p
vxDC+rBf3Xh+URUxOAI8IcBSAGHdSzmbBpbt1AD5p46G4f16CxwyD0ZU/uKAe6+GvDg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dmarc=pass header.from=gmail.com;
spf=pass smtp.mailfrom=gmail.com;
dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=o9fx2XbB;
arc=none smtp.remote-ip=209.85.215.179
X-Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.179])
(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id CCAB0606A326
for <git@vger.kernel.org>; Sat, 7 Nov 2026 05:47:07 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org CCAB0606A326
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-cd62c570b5dso779961a12.2
for <git@vger.kernel.org>; Fri, 06 Nov 2026 21:47:07 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794030427; x=1794635227; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Akxn6ITUl7dhrZx4muWk5QNf1oo/AC75b2f255U7KLE=;
b=o9fx2XbBGFlBA2JAGjN2I0e8MZbqQCyctIpjh2gLgoM7jNdQcypWPbX8/CzxiSMRvw
CgH3VYvQxHJDXUpafqEdSE/FIUAsH14giKzsUlLk4jdT1diX/MVMPuhycp/d9G1zbIuW
tk3NbwUh6Jb/4M1p5REH9lSlF9ccHqwu2pSuxk7R6tM+Er+sG5ORdNkkilzU1FJ3qXXh
I94HALu19BGydAx9aKtraZe8o1wwhAcWHCdigmLaqbuk0gSivonrqSzrq/E0TPKieL9N
GAGW3HQD8oeuH0dmHTFgAt9Cc7GiXDGKTIM6cgLcXnM/PSwJ97XG8fs8+Tdo8yrutCFY
K4SQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794030427; x=1794635227;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from
:to:cc:subject:date:message-id:reply-to:content-type;
bh=Akxn6ITUl7dhrZx4muWk5QNf1oo/AC75b2f255U7KLE=;
b=mCfNWbGglTPUSfRuzqbYeFxKjJxgcw6cwO1V4QfHRHClVbCffbHXdgIA2B99q2OkNI
IT6xZ/buyaCn4RMEI97nN79iIl0NdVC0zn4N64hpMiMdkv/KN8xi1xDuRCBYn+yzD07Y
LzXoiONVaHa9egD95jaIeGgO11YA9vjbcvFgM8OnKjjWtVENU/mx16ZQox5c7Ur6a6ft
C/6Y1pf5W8F/KVohcAP4L/ugomsiiO5t69axdwkFE0aBySEXxJJF98g/fMl3G3AdM+HG
QFu1y5k3EcYgzZg0bODttLGrbq27SZcT4T1K0hNRi7/XuQvOxZYs9IFQOu62Dgwf52oo
U1TQ==
X-Forwarded-Encrypted: i=1; AL+hErF9QGyboMCAMlOm+Lfqj5LEUtRHF/sLZAh1EnpSicz+nviJGyRL/jVfh5Axk/7H/aaVdBQ=@vger.kernel.org
X-Gm-Message-State: APuU4Z+yCSGb/LW7ufs3RosQMKl6tPLhgRJyI1zMIR8DBK19KhzQQmmq
1slTUk/CVKnOZbBcfeNlpZuLhBD/YsphvqUnQUKg6M7/vO9RufNCV/IHRojIwcRtziU=
X-Gm-Gg: AYBFou3Y38YIAHTMJ9ccP7MZjjErLM5tiniBC+DiZzRuZoNhoYp+QSqCAgybUE8UfwB
y2duDR3+YF05njyzJajyKH+G+ACxinu6nFuFg7epOCHExVjhghx5JCpi+dRsBbx1zGU+d2LGgGi
xZ0VTPezk9leAXpH4XM6taWqQSOueP/FnDst7uxKhAe+g672sHeSalkP7iWhiHeHvl4X2guwRLC
Y3ErdmWmBEvEMn3MgTSI69PFA+Mrf0bZVgwhMGM0PeB1R2bWi9QmmFC9lvhx788kor5Re/bQFFG
7jns2w2v/N20nJgk9QfXV6Q57MLBtWFmm/QwSYYqm9YIGvyFeeCmPblmDG5//pTyTFkrbMG0fu7
eewDJB4yMyY+XVoETScpj9Ua6mv162uGh5EfX6MGpEi9BPb8/aBtZe1wMPod7GQZvnipxXYmFW+
rSc14q9jNMn3GDYqjdMA2uTNtBQ1Xqq13vC1X/Am5bLEmDPXkMqtPgHiqiQVpJ7ObhJNvWwpqOf
HxRaBj8dlOyuQS/vGYJNLPoh74GCBFXyKqBj1GHuTg+4OFX+flFtqc3+dlHo6zjcq9XsmwX2w5P
UNyTjgZEXhkQgVCDVJ62mSeUzh/iirGNSR/m7nx9dNxwV5J6lkd0w9QJbHus51UE/ozTXvkfGKo
=
X-Received: by 2002:a17:90b:314e:b0:3ac:adce:60af with SMTP id 98e67ed59e1d1-3b0db6a8ec8mr5106869a91.16.1794030427005;
Fri, 06 Nov 2026 21:47:07 -0800 (PST)
X-Received: from LAPTOP-PVRSMPQK ([223.190.82.143])
by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3b105881ea8sm1855640a91.9.2026.11.06.21.47.04
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Fri, 06 Nov 2026 21:47:06 -0800 (PST)
X-Cc: Hannes Brandstätter-Müller <hannes.mueller@gmail.com>,
git@vger.kernel.org
X-Mailer: git-send-email 2.56.0.344.gfa103ac04e
X-In-Reply-To: <xmqqfqxd9pru.fsf@gitster.g>
X-Mailing-List: git@vger.kernel.org
X-List-Post: <mailto:git@vger.kernel.org>
X-List-Help: <mailto:git+help@vger.kernel.org>
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:git+owner@vger.kernel.org>
X-Precedence: list