Article View: linux.kernel.git
Article #4208Re: [PATCH v2] history: refuse to rewrite branches used by other worktrees
From: Phillip Wood
Date: Tue, 01 Dec 2026 16:39
Date: Tue, 01 Dec 2026 16:39
22 lines
12111 bytes
12111 bytes
Hi Aniket On 30/11/2026 17:13, Aniket Gupta wrote: > >> A branch that is being bisected in the current worktree cannot be >> rewritten because ... (is there actually a good reason?) > > I rewrote the branch by hand while it was being bisected in the current > worktree and in a different one. Bisect could continue and "git bisect > reset" checked out the rewritten branch without problems. One thing I > noticed is that the result points to a commit from the old history, > which is no longer on the branch. I included this check because "git > branch -f" and "git rebase --update-refs" also leave a branch alone > while it is being bisected. I am in favour of keeping it. Suggestions?u I'm happy to keep the check if we have a good explanation as to why in the documentation. Thanks Phillip
Technical Details
Message-ID:
<c41b3014-be88-4966-aa87-add5d48c26e0@gmail.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76804-linux-kernel-git=dewy.ruReferences:
<20261123103911.98860-1-aniketgupta3001@gmail.com> <20261127173252.7794-1-aniketgupta3001@gmail.com> <03c0d1e1-83c5-4324-b1c9-8023edc4b09e@gmail.com> <20261130171318.65085-1-aniketgupta3001@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!git+bounces-76804-linux-kernel-git=dewy.ru
From: phillip.wood123@gmail.com (Phillip Wood)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] history: refuse to rewrite branches used by other
worktrees
Date: Tue, 1 Dec 2026 16:39:35 +0000
Organization: Usenet Network
Message-ID: <c41b3014-be88-4966-aa87-add5d48c26e0@gmail.com>
References: <20261123103911.98860-1-aniketgupta3001@gmail.com>
<20261127173252.7794-1-aniketgupta3001@gmail.com>
<03c0d1e1-83c5-4324-b1c9-8023edc4b09e@gmail.com>
<20261130171318.65085-1-aniketgupta3001@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
logging-data="1767440"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:JgYgcO5Mhf+9D+pllbqxYWrLz4o= sha256:cQrUZ4YBK0IrQexibSVQxW5jCcOVN+0d9SUc3ik5E3g=
sha1:wfYVmsuZCAnHrVxr5HN4+3RE0Z0= sha256:OMa6lPSXCy5TaiCP6hkQGdAnGclj6sdImb7++eQL4zY=
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 7E713117419; Tue, 1 Dec 2026 19:39:52 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.949
X-Spam-Status: No, score=-1.949 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.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 zcLPw-PHpHDW;
Tue, 1 Dec 2026 19:39:50 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-76804-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 A20E71173F6; Tue, 1 Dec 2026 19:39:41 +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 3DE2129957; Tue, 1 Dec 2026 16:39:40 +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=1796143180;
b=PTtBvP0ijj/HSUiDU0C3+44OtdtANAtoAvcAuC+7T+5aPMsPvTIEJOfluUHd0k2Zr9Iq
CPtllemDfxRz7HxDg3aHvLJ+ihZSlPPnAv1ZhLK2YIVVuqIF7KfbiKB6ovTNd61wFRZan
Tvx7fcMxGoE9+eTFExHX1+oL1z3iEktIqzXrc7ubeSl8k88uU+n2EztXkudB28eav84zF
3zmETgP0tSyTWO5fRrhrDJMo7MkimrS+pcpfDHvaLqNMxv+71N9Up3/FtOvaIdce6F4cI
3avH+UPdiysUZkcuviBCGi0jKPZoX9xl6wq2PY2a1+c5UtvzgfyKzr2V1U2F/744vzg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796143180;
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:Message-ID:Date:X-Mailing-List:List-Id:
List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
Precedence:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc:
References:Content-Language:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=;
b=l31yNwlssKcWnR4y/qI2mMNT6GZ/Py+cqswV/CcPuIkv0N232MuS54wU1Hix5upeGW1m
nmeNe8oCyVhmAehLiPHWELkQxVDAXYecSO1XSesqU1knFHMnhEmtWRFgW2OF6p/iSSAbG
CLA6Ec4fK+TaVxgP1PGtfjksMMfhNQwYZ+aICfWI5gp3av6LdeNsiYQs0UOe6/Vy+BEhS
KPTJ60GTAcsquoZrK3l8cMCbLiM2mAKBuLNalD7fhDGaSS+cIIVmYLl5PBc5TEbD8rmeX
sCf5zsra1/9yOrmzHDXqyYlaOO8WoEE6fhybWuvl2FRlZPKhyWYOhdwdWdBzikuvKqw==
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=ppYU6NXb;
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 1424F606A32A;
Tue, 1 Dec 2026 16:39:40 +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=ppYU6NXb
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.221.46
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1796143179;
b=vPIfKTzSn02dT5f5iKkcJPBMWeIwmNgYqBHtFDPwZmkoffjy9pCbo22L6XDOmxR111KK
DPyGz4xFcCoQeJtBIby5e6aMMOTt5nZsot9O7+VQGDLjQgZuOo6/hpBrA3iusl853Baqw
4tulcZ7C/SlPL1oJwkY2L4abCu7QLIu/eKSGvNp2hz4k9fr7hYqRAX6hCRZ5ctlnXkrq0
+h9UWiyB/2+W6rfZa+gpaGUgfA/mqm5p2q72e8FNuCopqF1vEWNeegcFRRHeHxJyljwj8
ZRhA1256A5HxucWum9CqBTVUxFa/VeH8p0QYtlsk8Q90s7z31ip+d3/qsrAjuw8M06Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1796143179;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
Message-ID:Date:MIME-Version:User-Agent:From:Reply-To:Subject:To:Cc:
References:Content-Language:In-Reply-To:Content-Type:
Content-Transfer-Encoding;
bh=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=;
b=JDcv94udPVJ3Uy/cGDgbzjFU+0iePjDvJZcSh6R5gXSNmV7XkDNEV458VNA3q32pGGXo
RHaHjsnDOMpT2wnncDVj+0OgFMr1AOER5bJ13Le5k1oRAJhsL9POrV4MROw/xM6lkqNxE
R3vWxzMsOG/fpndA2U92AdoXHtkrYB608bXcH0yCozfG0GoQZDxgfnPWi1VVkNdUhDOxj
AYUG89BCbOFgvsUOz2+bURICkl7m+AdDxwsYgGARW+v7uH/svaxivS4qpOJFKNuWmxHS0
PxcNiayIbr09wm6agc6PUa6otFKkslVSSxWGXM6w01Vn7F2ujQbpYGl+hZv1xsMaA/g==
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=ppYU6NXb;
arc=none smtp.remote-ip=209.85.221.46
X-Received: from mail-wr1-f46.google.com (mail-wr1-f46.google.com [209.85.221.46])
(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 D7015606A31A
for <git@vger.kernel.org>; Tue, 1 Dec 2026 16:39:38 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D7015606A31A
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-wr1-f46.google.com with SMTP id ffacd0b85a97d-491846221ffso10551287f8f.3
for <git@vger.kernel.org>; Tue, 01 Dec 2026 08:39:38 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1796143177; x=1796747977; 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=UUjU6KQxLquZFTg+9w1GAuVD6xtflrQKtvW2qlyvnww=;
b=ppYU6NXbEkC15mYE1pf2b3EJTRwBDbHWjGFdtWwtqCxWb6IhK+7EjyEnuZeDnnlXx4
Ph4LBsjNE7d6DYTypS+Fk1ksdssE0v9b1QESeh7Q8tL45X57KOzscY6f7okBcaQQOPS2
EcbMhoWdGq1bkxQLAugFun8qvbc873yY0EqoNPBzScP2eCId9KQZEfKoeOY66Ck8G9l8
o8hqKeC5bbYudlq0QhRQtEZF42UJXAyplYOEgV1ME7MbdjX88qkPQAcwZPMgskVIw8s/
ReNALpGygxoafiqGbgSFvER+/Kb5kSgl4ez4lrujRgOPka5/EJ4MDFW/L8pqCqJIEuSP
af7Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1796143177; x=1796747977;
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: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fvl7Xw79a8XGNCtImE+uh/QNlDSGu7SPaduPC+77cnsTNXjpCZlZaVhFtZ/I
4Ln8aXqituDKCZBrp0MKzghdtzQVoH5z5UJ1C7Iwh1fSgUjY3lb89u1vMk7UREFUheN1dLeVBxy
/RpwLNV3zGUX9Pbrwy7rRD1BZ8R4JDRwx/vBdResDRi3H/8sLNHOSrRisgqJ/juUNJfhAxp8Sut
E5VxWJ7aQxz3sxYjGXxCAE3CPjnCSLw+oRSEa0Mym7czEJcG799nu5SgwBczqDVP/WsdVu2G0dC
wl9sh7A==
X-Received: by 2002:a05:6000:4013:b0:4a7:d4c9:ea03 with SMTP id ffacd0b85a97d-4abaac57bb5mr69045495f8f.6.1796143177121;
Tue, 01 Dec 2026 08:39:37 -0800 (PST)
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-4ab6baa397asm72435826f8f.48.2026.12.01.08.39.36
(version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
Tue, 01 Dec 2026 08:39:36 -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-User-Agent: Mozilla Thunderbird
X-Reply-To: phillip.wood@dunelm.org.uk
X-Cc: Toon Claes <toon@iotcl.com>, Patrick Steinhardt <ps@pks.im>,
Junio C Hamano <gitster@pobox.com>, Nikita Bobko <nikita@nbobko.com>,
git@vger.kernel.org
X-In-Reply-To: <20261130171318.65085-1-aniketgupta3001@gmail.com>