Article View: linux.kernel.git
Article #2930Re: [PATCH 08/15] merge: handle NULL value for branch.<name>.mergeOptions
From: Ben Knoble
Date: Wed, 11 Nov 2026 15:26
Date: Wed, 11 Nov 2026 15:26
40 lines
12923 bytes
12923 bytes
> Le 11 nov. 2026 à 09:47, Phillip Wood <phillip.wood123@gmail.com> a écrit : > > On 10/11/2026 16:53, Junio C Hamano wrote: >> Sorry but I do not understand this comment. >> [branch "main"] mergeOptions = >> is an explicit "there is no extra options when we make a merge". >> [branch "main"] mergeOptions >> is an attempt to set a configuration variable to boolean "true". > > Oh, I'd forgotten we treat a missing value as "true" even for config settings that expect a non-boolen value. > >> I am not sure if it helps users to pretend as if the latter were >> [branch "main"] mergeOptions = >> if that is what you are hinting. It would confuse them when they >> see a true boolean variable >> [branch "main"] rebase >> and wonder why >> [branch "main"] rebase = >> does not behave the same way, no? > > To me confusing thing is that we don't treat those two the same way - I'd find it much easier to reason about if empty and missing values were always treated the same and booleans required an explicit value, Ditto. > but it is too late to change that now. Just thinking aloud, a “[config] strict = true” directive could affect parsing the rest of the directives after it (including included files)? I’d also want a way to affect .git/config without editing them all, but… Anyway, not something to derail this topic with, but something to muse on for a future feature?
Technical Details
Message-ID:
<C8BC29A0-8AA2-47C6-9246-19AFAB54D074@gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75209-linux-kernel-git=dewy.ruReferences:
<b298dd66-49b8-4019-aecd-e6dfffa2f89c@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!git+bounces-75209-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH 08/15] merge: handle NULL value for branch.<name>.mergeOptions
Date: Wed, 11 Nov 2026 10:26:35 -0500
Organization: Usenet Network
Message-ID: <C8BC29A0-8AA2-47C6-9246-19AFAB54D074@gmail.com>
References: <b298dd66-49b8-4019-aecd-e6dfffa2f89c@gmail.com>
MIME-Version: 1.0 (1.0)
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="887039"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:X9OKA8iP/pwBpqa6XGdF6eU5XPc= sha256:riySRHy/vDHAGRk2yxxMtcCW/Csmrf/+vtEmRBGXk1o=
sha1:wx8F4XtMaQj7e3hxCnnl7+QsjHQ= sha256:ISxmZBsaGPZCQe7TUB/aBPmav8iaYhN3G3k6OrmdLfY=
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 45973113F43; Wed, 11 Nov 2026 18:53:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 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, MIME_QP_LONG_LINE=0.001,
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 hWgGrb4MPxZA;
Wed, 11 Nov 2026 18:53:14 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-75209-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 03040113EF8; Wed, 11 Nov 2026 18:53:03 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sin.lore.kernel.org (Postfix) with ESMTP id EEF38144EA3; Wed, 11 Nov 2026 15:27:53 +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=1794410812;
b=C/ICmg1IFU0nGeh+physJ32SyWHmk9gRrao3GDyjSc8VCLQjq2kcXnHDkL8weoK9rOuB
Fj2rMnNFDOmPdpiFM1OYOoZZlE63+EpJ72NITg7W94G+GOQvr5seXZILPNCx6BiWns5mt
a0t77uK5mFLKbhbWuyKfQiso+UWq+8zxsrML9PSLxMnggAdrMuSyoAmHtj+RDXnzRc1Yy
DH1g00zNqE8trENOy8bxdXs9VHpXQmZwenMDDA9bCoIgJ1xM/kU6ZBjFKL+jlfv93GvYS
CzQrA4019VO6cdVSqCY6Onk2vETYiOJj+lIxltfYE8k7STtMy9JalPB1oKpjbeVDEWg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794410812;
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:Content-Type:Content-Transfer-Encoding:
From:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
List-Unsubscribe:List-Owner:Precedence:Mime-Version:Subject:Date:
Message-Id:References:Cc:In-Reply-To:To:X-Mailer;
bh=Eepvju3D5WqOkG2ensFBotpoxN4lao5L1rtgNqtraDQ=;
b=0D5W6rCzx3IfpRwx2CjeH4GLNBMBeYzJH5/URHJJlgWYRfRxByPaFpQNGAt24I2Z/b1Q
BP5GS4Vcaek0cANazrNRz9KqMJUaP13CIXW14q8gdy21S0bmC/z3rH5eOJ2nrGgs1gcxh
kR3EuQPf20BEU2ikQJFbvl7x/cwEGrvKb/nd7To14j2a+1woso5e9xEXzwGwsfFae4GpZ
2KuNOElgiuZ6GEHm85PVgeLEGIJxiAi/1rygOlu3uAPlnov1+/Cjnmxy5QBq3oeE3Uh7Q
rh2oSKOgPagtswwd5BZqesc814p2lPRXDtmW3KT9h3vasDznad1D8VIxQ0BPYiujAgw==
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=GzimKo3n;
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 31C3B606A8AA;
Wed, 11 Nov 2026 15:26:52 +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=GzimKo3n
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.178
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794410811;
b=pQvx1f2Fomx5fyJJPiCqh4tlI8JuqmqrCVBPf7TebLRhdJbYYwUk+CzCTSkSGSU7KDoh
WXhLUyTph84CTTeAE+t6YugiTJLQfWMNh/NIfhI1lNR6HLNOFAA16BiLRFZyQS8DWqlJV
1d4o16+8sGP7CTSqBDGyoMLc+hsuwNhnoZ9iNwON4p1KZfMPeOIYjTq1a97oJ2YQuS/TR
wyw5/Ji+CSi6c2+60S+ZvKLcTG1nHnzzDY00wRTnLZMcAYcNQj9OPQOr/Ggmn4Fi8SQ70
ZHIzWURFVycEqe8YIoLRf3OeGOh2MbzfC2ERPcS8UU52ijbij6Hu0GSMGkqHBLu3XBw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794410811;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Content-Type:Content-Transfer-Encoding:From:Mime-Version:Subject:Date:
Message-Id:References:Cc:In-Reply-To:To:X-Mailer;
bh=Eepvju3D5WqOkG2ensFBotpoxN4lao5L1rtgNqtraDQ=;
b=opbcWpbcD7ic5TM9HzsO50RM4SANj1hRwQyxyV47SRiqWn7lrWlJuZDVhvmd+IUSz57Q
BVTsMCx+OeKQfRZMyfAgTCMW5BWvJem8jF/a3y/kFTVEYYlg8SwLcRf9t1BSHmYEeXYmu
CXsy9cDeC6qcrCQtNewINH0g4OfNf+MthDoI+xQsIRKUXR5U5BWcLZYfLyQJEGC4I8kM+
Ke6Ik+hPCXTroeBTSBFsn5RD3IgiUvGUxmUHJk7hcFcwIrZcRZEJCCYV+gPtFqMGBMM7A
rISQLekIzX8ivzRKFazen7yFWkmuG8PbpUg6eRF20qvD/HB1IUkBZ5zgSMsYT5dr5wQ==
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=GzimKo3n;
arc=none smtp.remote-ip=209.85.221.178
X-Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178])
(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 022AD606A32E
for <git@vger.kernel.org>; Wed, 11 Nov 2026 15:26:50 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 022AD606A32E
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-vk1-f178.google.com with SMTP id 71dfb90a1353d-5e9528732b4so1942968e0c.0
for <git@vger.kernel.org>; Wed, 11 Nov 2026 07:26:50 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794410810; x=1795015610; darn=vger.kernel.org;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=Eepvju3D5WqOkG2ensFBotpoxN4lao5L1rtgNqtraDQ=;
b=GzimKo3nYsm1WM3QJGoeitC8dGc0PYKQGRg8j4VtU9+ZyxSSjWQTJbysEymp/yRvTR
aN4gvOYOiJ+NCPT8yIp3nB57U6SGhARkLKtUj1idfBp0Ma5VKaObDChZ68x8ySZI2W7T
nXsBQnb8QEKBZYMOdEu6IolflHWF2DuSGISet6/qZWUpyTqTyJAHXJlxZQJxwZod3R5i
9D+eADiJFbsipjuuNO6iQy6g57jPaDPmSlr5f07VCAFpRsE3t5ZG0SL5U8qo4wYImkOU
mlxeFCsh7h4CLjDhzO46WX9hbtCydpL9DqTXUxkxTNJ7YWg3t7G0wvGJVAcl1jdjrSeG
YoDg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794410810; x=1795015610;
h=to:in-reply-to:cc:references:message-id:date:subject:mime-version
:from:content-transfer-encoding:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=Eepvju3D5WqOkG2ensFBotpoxN4lao5L1rtgNqtraDQ=;
b=blK5NC6uu3BDnIqTwjINwNesG7JrtcLbiOcbZpMUe8l7mnGt9Je9wEGgefeO39LHDD
0u5iDo34Q+vcf8QP7I9yLRktd8buAtelqTa3zey2XWmObqFOqIT3+sgcQzvGcNiydiRj
tFkcvbpYgnMBObjj7s36dtuxyuFNuJSZ2ifaBj4CWlZPeRTBLAHROl2VC/aPsczsRMls
kH/PeDJvfFOQZxrrpBn1Zc+Pueowg5UBVTYvdz+On7WG5pteNkWsXXdv/1+YQVb8X5S3
/Ge9ZFV2T4de08+LPMDyFHe0TJ758kOhmzRy69vPAdRoIWssoCW4CsQ3qHfvvdFEN7hK
5PQA==
X-Forwarded-Encrypted: i=1; AL+hErEv9csEqX8si8dvbnQWcAVbfiYAOn4+xX51MjXzk19IXFJ+I6ClQTzpzCYfRvYUWgGtMy0=@vger.kernel.org
X-Gm-Message-State: APuU4Z+BwkoneAc26vKQGf3BiZEj+LxHKmYphkutFmTYvNFWXfiWD+QT
kc0EypU2lIs8qsbsrCuCZeDzniz0AoeGUF7V3Mdmi+yMdNWixHrM2U6O
X-Gm-Gg: AYBFou3WjNXKFU1XfKYF+RtFwF5vBtGzXgPIYGNWbKBMXrECVHsyshHjx2ApYbcQQwP
OMMKNRqj+DsAGvmrrz0blT7BRS5hBrPn/rMHbxUp+QWlbKpn0tP0+1lzi9v3bEF772NQ8F5vsMT
X111Pqk1DUZ414aLLCZcAmp3DyAgFS5l2jdzqOnZxxtup3QH5WSOBUas6Y+lcrGtjwCXnCUyTfg
QeFULqxvk4u0y5tsJal+9a9YRO7Hfboea0xKcp8SVWNilhhEBKNgEnfYYUKHeQ1YGzxinr5BbCX
4ozJuTDs4hYtU/XNlq71ETeZd1gnqN4bM+g3rRP58sdIaDOyWOEnqkiDzC1UbGsKNOiI74V6xVk
t/7k3D2Y8IXklPKPW3Vb/nPjR/0lVQ4YhvvuLqoBH/hE8KsG7SB0bQaP2GfimC/3RpAd0wcuFEF
xelps2xFC9U7A+cwvOz7PPmnDYlq4ZUQCPKcMAW6AZzg4O/df0sIZzLbsduL3/JrVom4ncSAf0R
YBVVzZspkDYMg5y1EqKL7FKaEQmQ8WMK8XTMzStPGQTbh3Po3o8Uo2egZjFSbfyq1S361tVHdVi
O92ZyIDhhdS2VH/5lMqOJ+UrNw81jtsugVsS1aYWWWOrEvJwvjEthJvvftzuQmcqVcx42EAbKdn
/PMbQMX2Z3kyN31NLiEB5t/Qke24zLpncRNmvn/vikpdwVXD9LJ426dVzWcNbrq3aa/HlJlK5vt
T9Dx0=
X-Received: by 2002:a05:6122:512:b0:5ea:e052:2ef0 with SMTP id 71dfb90a1353d-5ee1c3ff521mr979531e0c.9.1794410809807;
Wed, 11 Nov 2026 07:26:49 -0800 (PST)
X-Received: from smtpclient.apple ([2600:1004:b092:7eb8:5dfc:125f:18b7:8759])
by smtp.gmail.com with ESMTPSA id 71dfb90a1353d-5ee0c5ab918sm3885981e0c.7.2026.11.11.07.26.46
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Nov 2026 07:26:47 -0800 (PST)
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
X-Cc: Junio C Hamano <gitster@pobox.com>,
Thomas Bachem via GitGitGadget <gitgitgadget@gmail.com>,
git@vger.kernel.org, Phillip Wood <phillip.wood@dunelm.org.uk>,
Jeff King <peff@peff.net>, Taylor Blau <me@ttaylorr.com>,
Derrick Stolee <stolee@gmail.com>, Patrick Steinhardt <ps@pks.im>,
Colin Hinton <colinlewishinton@gmail.com>, Matt Hunter <m@lfurio.us>,
Johannes Schindelin <johannes.schindelin@gmx.de>,
Usman Akinyemi <usmanakinyemi202@gmail.com>,
Miklos Vajna <vmiklos@collabora.com>,
Thomas Bachem <mail@thomasbachem.com>
X-In-Reply-To: <b298dd66-49b8-4019-aecd-e6dfffa2f89c@gmail.com>
X-Mailer: iPhone Mail (23D8133)