Article View: linux.kernel.git
Article #2024Re: [PATCH] sequencer: refuse to revert shallow boundary commits by default
From: Nakul V S
Date: Sat, 31 Oct 2026 17:18
Date: Sat, 31 Oct 2026 17:18
32 lines
11682 bytes
11682 bytes
Hi Phillip, Thanks for the review. I've sent a v2 that addresses it: https://lore.kernel.org/git/pull.2273.v2.git.1793455522168.gitgitgadget@gmail.com > I wonder if it would be better to refuse to cherry-pick and rebase a > shallow boundary commit as well. Yes, I think so. v2 covers revert, cherry-pick and rebase, including the "apply" backend of rebase. > Do you know of a sensible use for reverting a shallow boundary or is > the new option added out of caution in case someone wants it? Honestly it was out of caution.I can't think of a real use for it. v2 keeps --allow-shallow-boundary for revert and cherry-pick only, and rebase always refuses. If you'd rather not have an escape hatch at all, I'm happy to drop it. > For such a rarely used option I don't think we need to add it to the > synopsis Fair enough, it's out of the synopsis now. > It would be good to extract this into a helper function so that we > don't have to copy the code to detect a shallow boundary each time we > need to detect one. Done. There is one helper now, so the error message lives in a single place. Thanks, Nakul
Technical Details
Message-ID:
<20261031171834.64081-1-vsnakul@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-74023-linux-kernel-git=dewy.ruReferences:
<7179f371-a709-476f-8e94-807d7b62ce6e@gmail.com>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-74023-linux-kernel-git=dewy.ru
From: vsnakul@gmail.com (Nakul V S)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH] sequencer: refuse to revert shallow boundary commits by default
Date: Sat, 31 Oct 2026 22:48:34 +0530
Organization: Usenet Network
Message-ID: <20261031171834.64081-1-vsnakul@gmail.com>
References: <7179f371-a709-476f-8e94-807d7b62ce6e@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2507581"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:iQT/E/WBtSFJ0wH0rUyXK2JXw9A= sha256:LLMTbwKd0tdjTpRU3zmtMrldNqYQWH3xEWPErv3Yo2s=
sha1:C7BlGvoEGcw01Mi0xr08ECS/5q4= sha256:9Ky1AT1mB23CTb605V3Xfszd2HlAWTO9gLG8WggnR58=
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 7D174125CB9; Sat, 31 Oct 2026 20:19:02 +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.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 y23WNnL2LcqF;
Sat, 31 Oct 2026 20:18:59 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=git+bounces-74023-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
by mail.dewy.ru (Postfix) with ESMTPS id 4B212125CB5; Sat, 31 Oct 2026 20:18:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by tor.lore.kernel.org (Postfix) with ESMTP id 704D3264E1; Sat, 31 Oct 2026 17:18:46 +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=1793467124;
b=el3Au1CMDBHVMY/vOEATsejvk5/Ws/NOn6Fe/eM1q3mjuaorLWI+WZRPQNk5nmMUFqMN
gCbehNI1kdKNf6u1ZK8C1XV6BnKSVeMMyRPYYCSaptepKmVkLM0al4Hme8oBxBUjHp+WK
n7ulerc5P1bA1l2HpzSoLGVi+Qz/sXFXYqlp+lvqoWsiA/VJLzKNeoYPPJ6xEBqUAMO+r
OsW47KebU3wjAKXznpL9CKR45XpGU4oIiCeIcco1UFDg/gRmScPrknC3zfT5HNgLbc8DJ
ekuNVhFDEtBvYSmGAebqs2QKoFcWfovjeg2HzxSOj2EphTTcpsG4hDWMwUklkuZISjg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793467124;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature: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=0H6OfuzcuGYAWheteHC82SQyAshDq8ttW81k9/Ud2Kg=;
b=0pB7R0jVNRYLNsD3UJYu/D5kpOPeEzoZ6AQiJsk5USm8SzmAfZEydqJmpTpZyKkPFhrg
Aw8NZt6kPHH4hqSAGafjB16Bj1o/V/6+aByw0CO+Qe97d6F4zG7PYNAs5vUBT2MSWzb7T
zJttyZ42yOIrkdO3s5Oi2OlinJunA9udtN0pH5mTm12oz5KWD4+ddQE2T83eneTcotIxa
0RPcV0fLFU2gg//mCqPMkQlQtHvdPLi632WRzl15qp1YRe1L0x7lSzrri3KS4aOcWyGRW
7yjxl7aS8kmtVBxLky4QmfP+iB/FzzymxGvToPKlyWN82rxAwhjWBFdw3RyHp5Nb39g==
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=PfC1zdcn;
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 40113606A321;
Sat, 31 Oct 2026 17:18:44 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=PfC1zdcn
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.45
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1793467123;
b=4kQ3rHv534nEdLrf50kIe/c1MigAxVWmkH0AuAkn+sQNwKvkC2GAhbSmkx5bmyfyCb9e
ECn+eyZQXSCIMuDN5aiRIuNZConsizZSkDSO3OWGdj5lFK5P5Zcdp7cUHUCvUsSb0t72o
CcVzo6h73D1JASxrOpFfrPy74Ld7fRYa3u8qpw34lIHzMrkqxqVK1cyvA2FpFnW7TlIJw
qUEBme9t4HIKUMTuEpxd2Z0wMHzHEoxqgYeeSZdxhqeia1wdV3BsD3NXsmuniTM/cnS7M
CYo1rT9pg4GC+yKdqQxqif/TP/Dinj4RbGUboH+4XJIRq8FOboTjkzq8NGiy0lQYfTQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1793467123;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
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=0H6OfuzcuGYAWheteHC82SQyAshDq8ttW81k9/Ud2Kg=;
b=nU4C6PJOyY6OBalvLrNPH9pbwgEz/CrtgOJ5xceYfb7v/ofEHm0zPuRPK0ukZbZ5l1fw
C4zOJjCtOYG9nsa+W9xD9rJ+nFvaxCz4vt3yEc9hGbYAG5OLznNH9L2p9VwH9fJ2arAr8
G4heew8bfOTxP5MD4RKzGLhP8gXT+NglNabci8pHv7OEh+XpH0lZkrsvrjKFfZa6ZfBqG
Nh7rd5vyrOKGQEv2XAQVApxEWkqFH6Q0BsnCt6PfSK3TS/xEV4Txq94fLQD3NCIYh8HNe
ora8C5aKbLl2ozyB3QqRsBuSZcDtA4Yu7/2qLC+uiYbb3NFHUZ6+8LkAIVSj66bUQmQ==
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=PfC1zdcn;
arc=none smtp.remote-ip=74.125.82.45
X-Received: from mail-dl1-f45.google.com (mail-dl1-f45.google.com [74.125.82.45])
(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 08FD0606A31A
for <git@vger.kernel.org>; Sat, 31 Oct 2026 17:18:42 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 08FD0606A31A
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-dl1-f45.google.com with SMTP id a92af1059eb24-1a2761c69fbso1639026c88.0
for <git@vger.kernel.org>; Sat, 31 Oct 2026 10:18:42 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1793467122; x=1794071922; 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=0H6OfuzcuGYAWheteHC82SQyAshDq8ttW81k9/Ud2Kg=;
b=PfC1zdcnsjCOKFQ0QcMkewauwhZL4DaBOdLdYGRih7l+HuCxhro5ZFEWqfL+LUTxp8
WepkdobEc7vL0ygCqaWV0V3tXkjSSxzJayWCwCa3lbu0IpxyCtwozoifGVwtOU0+GHqt
swVpxU6tNoFoqMFCZrQimCipb2mZuu0UlqOl6Sl7XbuL7aqDyl76fNApgmmrDTbkui0L
wUJTHAzau4v88a7dmcWWv44TO/8fwPYx/lFNiaW/oWHZzszFzQ20oPwXlBkjDPE3lIMT
dxxrFY6tslJ1+Zl2+9p7RJMtkoSdvLFyjYd/0kJoVQzaZf5F//lWEhlk7AYITk16YPjT
Xqxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793467122; x=1794071922;
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=0H6OfuzcuGYAWheteHC82SQyAshDq8ttW81k9/Ud2Kg=;
b=SLW3HGLwT4P+dk2IPijd1ajUGWSd2xXBKUqoDd8BSpEEzYFjntTUVSSUOo+YSdI3Bh
19EN8oBtyuVYJNJrjMhd4I3HzDwsB3H15/zAh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P id a92af1059eb24-1ac5d1ceb76mr7141228c88.47.1793467121938;
Sat, 31 Oct 2026 10:18:41 -0700 (PDT)
X-Received: from localhost.localdomain ([117.206.63.98])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1ac13ef1932sm17007959c88.2.2026.10.31.10.18.38
(version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256);
Sat, 31 Oct 2026 10:18:41 -0700 (PDT)
X-Cc: git@vger.kernel.org,
gitster@pobox.com,
ps@pks.im,
phillip.wood@dunelm.org.uk,
gitgitgadget@gmail.com,
vsnakul@gmail.com
X-Mailer: git-send-email 2.50.1
X-In-Reply-To: <7179f371-a709-476f-8e94-807d7b62ce6e@gmail.com>
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