Article View: linux.kernel.git
Article #2931Re: [PATCH v5 0/5] worktree: treat a branch being rebased or bisected as checked out
From: Ben Knoble
Date: Wed, 11 Nov 2026 15:42
Date: Wed, 11 Nov 2026 15:42
27 lines
12096 bytes
12096 bytes
> Le 11 nov. 2026 à 10:28, Jasper Mayone <me@jaspermayone.com> a écrit : > > While a worktree is rebasing or bisecting a branch, its HEAD is > detached. "git worktree add" and "git branch -d" already treat the > branch as checked out there, but "git worktree remove" deletes such a > worktree when its files are clean, and %(worktreepath) and "git > branch" do not show which worktree has the branch. > > Patch 1 makes "git worktree remove" refuse a worktree in the middle of > an operation unless --force is given. Patch 2 documents how to read > %(worktreepath) safely. Patch 3 makes %(worktreepath) name the > worktree that is rebasing or bisecting a branch. Patch 4 adds > %(currentworktree), and patch 5 uses it so that "git branch" does not > mark that branch with "+" in the worktree that is rebasing it. > > Changes since v4 [1]: > > * Patch 1: each item in the list of cases that need --force is now a > complete sentence, and all the commands are in the same font, as > Phillip asked. Ben was happy with the old wording, and I hope this > suits both of you. It was a tiny nit (for me at least) to begin with, but the new version is also OK by me.
Technical Details
Message-ID:
<B5975BB7-698B-4431-9A17-B6BB79559A95@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-75219-linux-kernel-git=dewy.ruReferences:
<20261111152811.99986-1-me@jaspermayone.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-75219-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v5 0/5] worktree: treat a branch being rebased or bisected as checked out
Date: Wed, 11 Nov 2026 10:42:42 -0500
Organization: Usenet Network
Message-ID: <B5975BB7-698B-4431-9A17-B6BB79559A95@gmail.com>
References: <20261111152811.99986-1-me@jaspermayone.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="888655"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:2WPlpLJcVJYExdm0n/1lGQJaI+c= sha256:LIHW48cA/NdRO9Gsamt9WiPza/6J1a46G/Tsdx16deg=
sha1:+i+MCwr43B82GD0klZEgB74u/Qk= sha256:0QJKH2PDYCLXu+MTE6yInSjW7FSvhWwTwaiaq0VG8Mo=
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 D8189113F48; Wed, 11 Nov 2026 19:00:05 +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 Lebp5yluCgwy;
Wed, 11 Nov 2026 19:00:02 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-75219-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 8A219113EF8; Wed, 11 Nov 2026 18:59:54 +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 0E59C180C65; Wed, 11 Nov 2026 15:43:01 +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=1794411776;
b=Rp7yKFyuwYNhKqxHr7uaIDda15VD1suJPreGSEqGWnUYZi8IZQ2ro5X4pbaJzl2wHsMw
7tXsAb3JoN/7bd98ERMClvmfk9bq2rfbgm6kFQtPVxEpYuCHxHaeBxLYLwF9qPx1F8JJ3
EDlg9RKfLhH7chRe6M9XMf/b/vBQlLNc0mZSUxPlHV2rUzjmFJvD8hL+O0eERPX7CS64d
WrcLGD77aYdwMpZMSfK7WFxnYCmUaycuCz1+AW4l31Y9bfTYWMx7R/6p7+4aTUniUJf05
2Gd1GnnrwMow5faGyFhBDfE5ODD6u6oHBqZm/P7ta40JlB1yn+BfjbNFZhh8ovS0TGg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794411776;
h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
X-Google-DKIM-Signature: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=RnCPGcN0kpGQQbRNh4n6MPmLluN5tT0ZtOOWOJpMEec=;
b=D2r4zen7gYk3aK/TNa4r1mBQidUFsTE+MLPBK26tXirsYwjrZD7V3Sd+Qp57do2YcDkh
U5eiWH2F0x/ZAIEm3PbebE4lZFfMSiaWD1cjtVwKvUcxWy8KGmiPH4S1wO0XMLOAs2LV2
JU8ZIYkEXYSXrG45CePwPjQj6y7LjESD1fwG9z++2MFdn2ZVSfq/cPU7bc24VT71NPJAB
9NY5zdMhzKzWbDFSVX87J1kZ6OMLxoSvgt7TCp4xAsLoXt/4OHmIUqyMKtRFNvfM0SGoa
O7Pv9e716N1MzZ3rQI4E58MrE7yDMxeEjBq52/x6oAN3H1Bt3d7TkdtBmDH4X5DNiBA==
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=KTmgTt7c;
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 C7C2D606A33E;
Wed, 11 Nov 2026 15:42:56 +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=KTmgTt7c
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.181
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794411776;
b=pNrpCNensjlJBKvoVfpZfbO1WoZaeEI1VzyyuiGcrlyaidmEfg2ze6LR4DaYhX2rrKSs
Y0pLUTgMCVQklQAf3WLDwlKQgZiseA8Ac19fvG8Bi4M3c7t1ID38szhtEWHTETDkud9cp
bqueyH34u7krYnf6z2PsR+IuK+zezPXh3V8+9u0LnDXQnj4DlAtmtFmvbYNOaTv9q4/Pr
5KsyTBy3Aet5zZLZrxGBghqaW/yHMm/CTNn3FvdNJKTF7CAZnd72znALyZXiskY8wXfDk
7MQxNF065gqpzFQ7REGQtwZuS0MH7qIIhXk++hSTg57QAL1UI3c3Yu+5o2Bcdpe0LAw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794411776;
h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
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=RnCPGcN0kpGQQbRNh4n6MPmLluN5tT0ZtOOWOJpMEec=;
b=F+fD7N2MykYeSB4QSpH0AmYq1UABvhmWwAfmdEXx6aUDKA/hzkjlNLfir+VvFnOdsjEo
Slvq7wd2Y2Z9j3qqKOegr0Mjk/G+O0J9kIUq/l2cWMYS76b3TtNYF1304VFB/cbqgCYwB
gnWuagu3PVi/e0tbHsKiAuVZkJ20iJyXcQmrEb2DXdDjF6uLXMDAVnbVC8WyKjTkUND0d
YyrPMbvW3yMN2TeQUu+z3HZYQ/yuzRvrbK739QC1FMfTRQL8bu4prbOMVUHs5BOHMeMeu
Lluo/flyFs59LKIlRvWyzIskagMdmBtSJRiIqviRmTK4el4GsXWUS4NKg2ZHU6jxVLg==
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=KTmgTt7c;
arc=none smtp.remote-ip=209.85.128.181
X-Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181])
(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 9ADA9606A32E
for <git@vger.kernel.org>; Wed, 11 Nov 2026 15:42:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9ADA9606A32E
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-yw1-f181.google.com with SMTP id 00721157ae682-8b3653df740so11176907b3.2
for <git@vger.kernel.org>; Wed, 11 Nov 2026 07:42:55 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20260707; t=1794411775; x=1795016575; 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=RnCPGcN0kpGQQbRNh4n6MPmLluN5tT0ZtOOWOJpMEec=;
b=KTmgTt7cyirUUX/kSYlQMDrPcQyX1PuCh0JzJ3tyYyKiHaqzM/jzeKgXzY4JmgCuLq
1++Vwk8c+JkxJeNTV9auFZlHANI2IgXtBaxuhzCgHSj6ShKSP3buxOCn1ufvHWWnC22I
LHCcl6ARd6RlzGbSse7cSu8ffUE8NtWBlVuUv1GF5BhToFSQCEpKVA+CoyuXJT9tx9WI
cfvEhIh5Mwx3aSb9faDvSaPylj3N+faAbzt995xX6J5yFSlZDeJvsl2NVBNPK2wcy7eZ
AvVniGk31mJ0DBGKcn3pzjpGBrKIEthtd8Ozbw7hxvxN6gpoFMVvkqinVWUKZl1zDO+o
JYzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1794411775; x=1795016575;
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=RnCPGcN0kpGQ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ako/7QghgSGsL9HhVJtKFO8fq3Y1ROJ53fp0s7K0
AzlKZIywZvzeqHX55LIfkwx+/kLv6eke5INyEaqF5Fvg3Al+7khhrUo1/xLtITDKMO3rNOY+4JG
tSsy3BwwbNAfLKsuP6Q4hsTgI6DvUH3/u/y+2Up1oYJgi2hStQORwkl8OQz3D2OyEfZ9m41v7eI
egamw=
X-Received: by 2002:a05:690c:4:b0:8b3:549:b097 with SMTP id 00721157ae682-8b3a81c5b94mr20403297b3.60.1794411774519;
Wed, 11 Nov 2026 07:42:54 -0800 (PST)
X-Received: from smtpclient.apple ([2600:1004:b092:7eb8:5dfc:125f:18b7:8759])
by smtp.gmail.com with ESMTPSA id 00721157ae682-8b393415af1sm46704247b3.30.2026.11.11.07.42.53
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Wed, 11 Nov 2026 07:42:54 -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: git@vger.kernel.org, gitster@pobox.com, phillip.wood123@gmail.com,
sunshine@sunshineco.com, kristofferhaugsbakk@fastmail.com,
haraldnordgren@gmail.com, Jasper Mayone <me@jaspermayone.com>
X-In-Reply-To: <20261111152811.99986-1-me@jaspermayone.com>
X-Mailer: iPhone Mail (23D8133)