Article View: linux.kernel.git
Article #409Re: [PATCH v3 2/2] merge: remember conflict labels
From: Phillip Wood
Date: Tue, 13 Oct 2026 15:49
Date: Tue, 13 Oct 2026 15:49
32 lines
9768 bytes
9768 bytes
On 12/10/2026 16:09, Junio C Hamano wrote: > Phillip Wood <phillip.wood123@gmail.com> writes: >> On 10/10/2026 01:24, Junio C Hamano wrote: >>> >>> This function is called once for each conflicted path, which means >>> we would read the "merge.renormalize" configuration variable and the >>> MERGE_LABELS file, both of which will stay constant during a single >>> conflicted "checkout -m". The issue is shared with the original, >>> but looking up the same configuration variable repeatedly would be >>> helped with in-core configset cache. Compared to that, the overhead >>> added by this patch is to open the same unchanging file, read & parse, >>> allocate and deallocate. >>> >>> Perhaps we want to have another preliminary [PATCH 1.5/2] before >>> this step to allow setting these "per invocation constants" once to >>> be reused? Then step [PATCH 2/2] can read labels in the prepare >>> phace just once, use it from the data structure in >>> checkout_merged(), and free them in release phase when we are done. >> >> That's a good idea, I'll re-roll using the diff below (I assume you're >> happy for me to add your sign off?) > > You assumed correctly, but if you ask me, I would say that it > probably does not count much as coauthorship than a mere helped-by. As the new patch is a very lightly edited version of your diff I've made you the author. Thanks Phillip
Technical Details
Message-ID:
<0e8e5042-9b0c-447f-a320-a3d58d364282@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-71864-linux-kernel-git=dewy.ruReferences:
<cover.1790761727.git.phillip.wood@dunelm.org.uk> <cover.1791537203.git.phillip.wood@dunelm.org.uk> <182edb2e8874986206a38a0af005e4df9ef9dd8f.1791537203.git.phillip.wood@dunelm.org.uk> <xmqq1p9yjtcp.fsf@gitster.g> <9ac1a744-b326-4b61-869a-546fee80da20@gmail.com> <xmqqld839cr2.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!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-71864-linux-kernel-git=dewy.ru
From: phillip.wood123@gmail.com (Phillip Wood)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v3 2/2] merge: remember conflict labels
Date: Tue, 13 Oct 2026 16:49:39 +0100
Organization: Usenet Network
Message-ID: <0e8e5042-9b0c-447f-a320-a3d58d364282@gmail.com>
References: <cover.1790761727.git.phillip.wood@dunelm.org.uk>
<cover.1791537203.git.phillip.wood@dunelm.org.uk>
<182edb2e8874986206a38a0af005e4df9ef9dd8f.1791537203.git.phillip.wood@dunelm.org.uk>
<xmqq1p9yjtcp.fsf@gitster.g> <9ac1a744-b326-4b61-869a-546fee80da20@gmail.com>
<xmqqld839cr2.fsf@gitster.g>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="2114289"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:1W+pIWnCTIXdwXgB2dh7LKByf4g= sha256:oz5GCWD5x1rpVnDwDdrM90K97Za4WLrGuWwmBuIiGSE=
sha1:pNqKogJuWz132teTxritTkCn2zI= sha256:264S4kntYKjHSZZbCdm5o2u4bs2J1uoE68r8e/lpy6w=
Content-Language: en-US
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 92BBC10FEAE; Tue, 13 Oct 2026 20:52:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 tagged_above=-9999 required=6.31
tests=[DCC_CHECK=1.1, 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.25,
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 RjyNgYC3UuTh;
Tue, 13 Oct 2026 20:52:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-71864-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
by mail.dewy.ru (Postfix) with ESMTPS id 6A08410FE43; Tue, 13 Oct 2026 20:52:19 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sin.lore.kernel.org (Postfix) with ESMTP id 16A361A14F7; Tue, 13 Oct 2026 16:04:23 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 572725326AC;
Tue, 13 Oct 2026 15:49:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="IQ+N5dD2"
X-Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id E701F53161B
for <git@vger.kernel.org>; Tue, 13 Oct 2026 15:49:42 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1791906584; cv=none; b=PM7uelZPoKoYk7g0X3PcxDEBXRvdIF7SqWnjwpEdSWsg7XJLvTM/nEDw36wftptif0uDKE4gIyXbWPeTsrISqTtiKdV/DfBzUeb/mROJRXDmGc6Z4rKkWZFWsb+Yud52ncy792646/g6Fq2sFL3NZ18ANaP33N0l6WcQrzqpEWI=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1791906584; c=relaxed/simple;
bh=BlJ+qOOpg8srPF3a3sSNSOPl7OQYEv3HRJCiLhq3j2I=;
h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References:
In-Reply-To:Content-Type; b=ojN2HXjY/hff/E9drtoUQgL7/kjN4CBMjH7/cHu66dYhpsRvgcY+2VBWhPzwN2u56EWLib43uS66N/IwOtTdFk0VhBA0PN0tXqXIO+hIcjGJpaMTQuPQIMyRH0KSDLhGwJ+8ynbwBv9kz2WTJFewWbpH4NgKhm2wskVSD4kyxyY=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=IQ+N5dD2; arc=none smtp.client-ip=209.85.128.52
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-wm1-f52.google.com with SMTP id 5b1f17b1804b1-4a16aaf2067so724275e9.0
for <git@vger.kernel.org>; Tue, 13 Oct 2026 08:49:42 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1791906581; x=1792511381; darn=vger.kernel.org;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:subject:reply-to:from:user-agent:mime-version:date
:message-id:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=NnIOjYMirdbn2pzOdPNzeGrE2JewTea6qdRAa9HhXzI=;
b=IQ+N5dD2/7DDP+C9FC9eBPwCCsiY/0JLYJlLtJZ6E4wFQRadqe9krqfSdOTCf4ZOA7
h67FenCkzYkbidjEX5hTOMn2EgOonw2NpquzPZw0ZnthNVGF2yeDO7tQaPGiTuNABVdf
YX07lCtdNLuMcix1FnzvfJARak16hDEblHsL/RgkPs8fVvCZdMscFSRMivERnIb/4RVY
M70GW6D5W+JJR0v/7VF+Og0gsewpSOJRf2UYKDGUH6vUVtG+fn+dOjnWDOFuUpmPaNWw
wyY3gddELnNzcKHfzlru0eu+WuvTBPh+gbBdKQbDsvH/odUBxKr/ukP5fwFFPtnLVlOw
Vlwg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1791906581; x=1792511381;
h=content-transfer-encoding:content-type:in-reply-to:content-language
:references:cc:to:subject:reply-to:from:user-agent:mime-version:date
:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=NnIOjYMirdbn2pzOdPNzeGrE2JewTea6qdRAa9HhXzI=;
b=AegwCxd+5RC1YpOBTjMlD3rwQW17q2Y3S1AGxmStC1zwTqSwhA/tHNGwT4YshY2JMe
3uvbGBm6xuAiN5dEdvR/tx/dfNuhBero0z3WYZwozdxONXoWavb8GFSeuz4HwCI2ogKG
lis1TbKQLcH8Kf8hqEumkQKQ/sK3StqnslpaIo2WIiJH4JBBh34hhgsbSv6BqVoEU3GA
tVkd7U06J/ZO+7ot/pfwA/Onkg3iAX5EA1/BueXg9ykWpN8kTGloHDTog7/pHRGcUPDv
noc/EMNsQQHT3G7RmehhkKDhFbCO0DmV+mGAFGr31U8fUyotlxEqQfYJV0Qp6EkceYI8
xQSg==
X-Gm-Message-State: AFq9FYJHRe8OpTu0BZ4gP9u8Erl/MZNrh+3mctArqg9V33vjoYuG3XDZ
Mfk2SCwxDbwNL0jAX9M5jR//gQp4ZcTJKZ7VutRDOFMXiJPGsPxGJSAXEMY7gQ==
X-Gm-Gg: AYBFou3AH2VIorH/o0Iy79fWbY9RAxWao4jSvrxFrHS1oRaZYZeS0U76xnfl1wjXbx5
7XRKlO1ebvLRW3I8vhlNTn4oRPcIffEsK9ZlU80CpVg6DzLGcbaRyPL9H3F+alnJfRwjlGLdeYt
NUGPzzz/b0+n7BsrnFJR7d7tUwqW+X0U6A5LpljKrRjeZRWnCtSgbc2UwTVFD0m5yK9MSS79mg3
Sq5MIYEixs5f4BgYgfdyFaFfjIpucyiOL32ZAEVUAIkRazHnPgMP1nJrreztBU5bNLBab2YaoL0
7cd7M7afZGMO6cLKXeYQukmBKbSBgeBgekRp6bMMzPlkoa3mYvx4wr5fy8pDZfkm9Johik3nm+D
7HI2x/CQ/jPh2aqFBxnHVSa0WkTt48drw1M4euQaOnr3i/ZQLzUMs+8sSjGj0WU4Rufkoqx4/nJ
dVctnxmM6MliY2rPbvzHvAo0buxOa7pyYH/YWMY1HxodR1JQ/y+lKtSHJ6FmsO4z7loXp9fUhYZ
7bCo7IeigoIhuhi7M+rA8nSe78mEqSc96k4a/Xa5jjIWWa6kF0KQg==
X-Received: by 2002:a05:600c:3e87:b0:4a0:a34:6e7d with SMTP id 5b1f17b1804b1-4a18e4bacbfmr236268365e9.18.1791906580916;
Tue, 13 Oct 2026 08:49:40 -0700 (PDT)
X-Received: from ?IPV6:2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f? ([2a0a:ef40:724:6601:f3ff:aebc:61f8:d91f])
by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48de0aaa9f9sm6080003f8f.19.2026.10.13.08.49.40
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Tue, 13 Oct 2026 08:49:40 -0700 (PDT)
X-Precedence: bulk
X-Mailing-List: git@vger.kernel.org
X-List-Subscribe: <mailto:git+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:git+unsubscribe@vger.kernel.org>
X-User-Agent: Mozilla Thunderbird
X-Reply-To: phillip.wood@dunelm.org.uk
X-Cc: git@vger.kernel.org, Elijah Newren <newren@gmail.com>,
Johannes Sixt <j6t@kdbg.org>
X-In-Reply-To: <xmqqld839cr2.fsf@gitster.g>