🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1823

Re: [PATCH v2] worktree list: add --branch to select worktrees by branch

#1823
From: Ben Knoble
Date: Thu, 29 Oct 2026 14:23
27 lines
12010 bytes
> Le 29 oct. 2026 à 07:14, Phillip Wood <phillip.wood123@gmail.com> a écrit :
> 
> Hi Jasper
> 
>> On 29/10/2026 04:46, Jasper Mayone wrote:
> 
>> Is that change in behavior acceptable? A script that reads
>> %(worktreepath) would now get a path for a branch that is being
>> rebased. I think that is a fix, since the rest of Git already
>> considers that branch checked out, but I would like to hear if anyone
>> relies on the empty value.
> 
> I think we can consider the change in behavior to be a bug fix.

If we’re doing this in order to usefully feed it to worktree-remove, though,
do you really want to remove a worktree that is mid-rebase? I
would think that could have work you don’t want to throw away
without considering. (Besides which, would it show up
in --merged=origin? Hm.)

I suppose I would expect remove to fail without a « force » flag if
the worktree is mid-rebase, but still.
Technical Details
Message-ID: <A0B73028-E3BF-45CE-8468-AA9B022C41F6@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-73778-linux-kernel-git=dewy.ru
References: <d0051192-8e86-403d-9aae-b988883ccfd9@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-73778-linux-kernel-git=dewy.ru
From: ben.knoble@gmail.com (Ben Knoble)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] worktree list: add --branch to select worktrees by branch
Date: Thu, 29 Oct 2026 10:23:39 -0400
Organization: Usenet Network
Message-ID: <A0B73028-E3BF-45CE-8468-AA9B022C41F6@gmail.com>
References: <d0051192-8e86-403d-9aae-b988883ccfd9@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="2025648"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8zvl4vufP9XlWkIO22HfzUpJmg0= sha256:P34/AO4Cc95nVzjcd1LA1q4GWxGkKNwZoOJI4y6scSs=
	sha1:U33xeQwyv3/vIWYPglK0AczcQMw= sha256:sEcmE34s67Yv0D6FW2SMIlfqx9x9k3ffTjb34WnPtiI=
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 74EAC125C69; Thu, 29 Oct 2026 17:28:12 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.047
X-Spam-Status: No, score=-3.047 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, 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 8Sa7nGOBysHs;
	Thu, 29 Oct 2026 17:28:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=git+bounces-73778-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 EB592125C65; Thu, 29 Oct 2026 17:28:01 +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 A1F3426FD4; Thu, 29 Oct 2026 14:23: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=1793283833;
	b=bVpbNvAdVe0s9dhL9ycZRgnWY5ISfhictqNkY7jcDF03tzzwryEKhj4GoE8SI02rR1SM
	 DyPirDz8+GfdZ5s4ifYz57kDvbExyzX4jCXuSE7W0EsSDRJuEdaxdwUdiXgn1C51zCNit
	 MRVO2B+HRirlbFCQ+QHQi11bIRvlFeKnuG41WSE6auA3IYv1XeXiHDkOTZF999P0sXlew
	 Yv/rkFbmzSGPqfn651H34k/olgFSRaQpuZ7ZmXkOVO/8+akBhaQJcU0ogCsrgkS5NhSi9
	 ZgVqfAaCuio8ffpcbAI3jzI15TvKQQvyUL0bd0q26nuSfhtSYbK3staVvzguHEdAJ/w==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793283833;
	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:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:Mime-Version:Subject:From:
	 In-Reply-To:Cc:Date:Message-Id:References:To:X-Mailer;
	bh=f4rz92oe7zsSXS4PXFhkNgbzAs7A3rdwxugDbJF9vKc=;
	b=IgRRHwTd+JxmSzY/1NwDp3LKxqRg/lmomWqpddIARtfH5TLlppS0LVUpahSjTimOsAQf
	 yZo6b17+3/jwpShxiNjSKiNsvDhyHLpfrS19PrOLwb4xYpSBkRJWViLbe/7LBy08lw2pb
	 e72LPBL/UKWTZVui7vAhGkCEhy9ChWJbhTsQLBvi5+tp8tv9vqyimiHjQkwtoXUmVPTEU
	 vkl8n0N/P8Q9uh/DP5l/qJdcpFa/AaCFTydCbRLUnCS3Y7wtjB0Fe/jmC4L4mYxR7F2JA
	 zDVfmFgfO69d2pqPCbbjMbSmdcEwllV+dK/+tJ5VB+gSHuExzR3N8ynXKrvvEquGLrA==
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=Yyk0Cx3H;
	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 7A2F0606A31A;
	Thu, 29 Oct 2026 14:23:53 +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=Yyk0Cx3H
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.222.179
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793283832;
	b=5ShNHA+PGt89JxBnTXzIJnrFmMyDuWFyKpiCHu3lck9TdKa3oh2KdXDoRAmC7NE9E3+m
	 ykKwVHfhXHAYVM1v1rEmj8h0Yw13VaFNL3LR3AWX+R/s0a2++eyJ2I2PnK0tCMBjsGavL
	 CjG9cefC3fSyizhHzZ6bSU9ZmJ0CD292sOhDsXnSNGgJFD2XhOLp9rdGjeJcyBseQnXeg
	 cdetR6k8489KOQMuyJjDJNMLdva0pz4TW4fo0dDUzUd/v0eyt+QKL2IXG8z9bA8DhIROz
	 FuwEnu+c9mw8rx4CiAHqdknpC8rTowaMVop3PFrRS6sCXi/pG1iJegY73/g8ltGcukQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793283832;
	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:Mime-Version:Subject:From:
	 In-Reply-To:Cc:Date:Message-Id:References:To:X-Mailer;
	bh=f4rz92oe7zsSXS4PXFhkNgbzAs7A3rdwxugDbJF9vKc=;
	b=RHajqViGiYs++tQAIGoQwZG+ECJezkl0bFl1BHlghC2gBrPqdTEHNxFOXMnDlbmdmFsh
	 3cpzc5ZlGSt39JtRauNpkxXX+d5Yg/CyTXmTE+09VuFWwzpLAtNSidR1Gz4wu4LlBdxPL
	 I8Qmm1SHsi86I0585WmvR8IPAHJ2EVxGUOb9+iOnX5k8eTNHJQ9LT0osErpd0iVrqORS6
	 E4059RfR0rmjUql/C6XMo3ABexPBiML4TEwzRme9EwVvvaI0mflRzY8Sr/+XqJJqRukvD
	 k/flU8yFujS59RxwLw/jq+1fG5tgiO4m9T9z+bFj09B/U/yPOYiBlON4RU09DUht52w==
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=Yyk0Cx3H;
	arc=none smtp.remote-ip=209.85.222.179
X-Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179])
	(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 47946606A320
	for <git@vger.kernel.org>; Thu, 29 Oct 2026 14:23:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 47946606A320
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-qk1-f179.google.com with SMTP id af79cd13be357-93f560af6aeso239767785a.0
        for <git@vger.kernel.org>; Thu, 29 Oct 2026 07:23:52 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793283831; x=1793888631; darn=vger.kernel.org;
        h=to:references:message-id:date:cc:in-reply-to:from:subject
         :mime-version:content-transfer-encoding:content-type:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=f4rz92oe7zsSXS4PXFhkNgbzAs7A3rdwxugDbJF9vKc=;
        b=Yyk0Cx3HKLra8y95TZm2yoiFtKwx25nqKKcAxwH1OiNjz70/bGRivKxk2241SP6u2U
         vtKdd5Zgrt4gYNHER9xZ2XQsW3n9Ak0LSwA3uFkPw7zUE+ga/9S8biwsK4OQ6sOlBMsG
         +FPTCMZ51EEMDnV4zc8p3lqLgLBJUrGnNG9A40e7v4LLKw7FmNtQ/7GwwneRJX0TkdOD
         nTu5qeCTuPKDThozRLrx0IW/2Lnien6SvzYBh1h96ur678P6HHc6GlkCUfnHIRkL7Xem
         IUf2O/G6baF0TE28kDvPfnkEl30nges3JBD/BlUdTeI7LHRAZsNRKoJMGzAU1Hl6PWe2
         Xt3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793283831; x=1793888631;
        h=to:references:message-id:date:cc:in-reply-to:from:subject
         :mime-version:content-transfer-encoding:content-type:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=f4rz92oe7zsSXS4PXFhkNgbzAs7A3rdwxugDbJF9vKc=;
        b=Fb27IQON7bHm0z28W1sLbcweRKKJeDL+9LoaiWfyTkt7Ta429Fw+gpGw+zTKdoyTyI
         4BU43+j7GNnUjBr/k6FOoGcjtU0BKkSm2Ga/AQvHeV1Ei0KDdgbdpO4Q9qQXFtSFHXTe
         +OPj9xy+PQl029Y/ZTyyeFg24PN6gjajstjpdNH2w5D3oz0Xbcefc+PGnkk5h1kO7oWb
         fy1W4cMV3CfzpxKwJlNHqhY9BGa+MsX17bl+zXTLzD38E3936OlRmb2g5qGpR5HVm8Ai
         S/PkVA+uT8i6g56ZBBFWW+At57nQD3UVzWOusTuBoy/3CW25zHQcpoz1TmQm/hWkpeXn
         CjYQ==
X-Forwarded-Encrypted: i=1; AKwUvBwRCSB9hXXZ+sz8EOWJEayqOhR4adzyrYMqwwuNoCCN+Svx09rxaCFL9M2qJ5t3gb5GLNI=@vger.kernel.org
X-Gm-Message-State: AFq9FYJ7GEAC4OM/PYqTXbUyNAmScNoT/qHTiR/i7JwTe51Gbl63FW3m
	VoqLO2+2/oKsk00Dn/4mTGjAnEMgNqWqzNjRj83W9htwuvAzz1Q98bRF
X-Gm-Gg: AYBFou2JgXhQFe3PUya3ftaS/eVVjozT+W98tgb0neIOXYkcO3AD7L21tl+UqDmZ8Ag
	f3uZAVPpBNNh1pJhBGwxAcenHq9zIg172yIEWCr55IhEiju82Pwm8qflLepBBfIzS3AxTYSq4JS
	uyAYSf/Xr5hFUgIvpkc1+//oXszzp92HbqZ+5QfAFaXwY3Mp9gaBm4f4PtMnaIlqtVZkU9Bd+jw
	Pu6VUU7TH71DJaNtBw0yVfy08tuemahwvHlYdXwiXcSGWGJIQKHN5NgVYkicW7bAg5nkvH9yfCM
	LVlJsQBpShnxfn2dyh9PUAZxwq8blXK89pZpFeSuv13iTMTBdwfV8vAB6WHoL7dLKfuK9MRTwda
	bRipaFS4J2lNNu5vsM7hsZ0SnR61hEGK25s5k8eHdNeRvCCdk/MbxMsoBjQ15Q3UqUndkG3gU47
	4uXb1D3G1nuRxMgRL5fGQujY1ON2YIeP+XS8hHbq+AnXJ8Eykj1BpdLeQu7DSiy8nmDSbgHlbof
	CNvnEEkXmP3UHQoLzSNUi+ZkliJlmSJ+sXrO0fLtkdV/CipsHKV3W62zlA0U8Z+450HJWQvNEpF
	pjUVwOFow7soi1AoNsSRVfJk8j/wm5ytAH/0Lbw8N6exuWL1Fymev6a41JuhrnMNJWjOiWiYTBU
	uWlvihaxYIeeVyxvVZPxMnN2rInYJskn3kfJBpGTDq3zS2uI8e83NNQZaWCrG8YkunbgVsYJA5I
	xQ47k=
X-Received: by 2002:a05:620a:4010:b0:93f:24d4:ecf0 with SMTP id af79cd13be357-94408d81278mr810564385a.47.1793283831080;
        Thu, 29 Oct 2026 07:23:51 -0700 (PDT)
X-Received: from smtpclient.apple ([2600:1004:b03e:6cb9:c1f9:7732:784f:faa9])
        by smtp.gmail.com with ESMTPSA id af79cd13be357-940f0669112sm1553579485a.10.2026.10.29.07.23.50
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Thu, 29 Oct 2026 07:23:50 -0700 (PDT)
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-In-Reply-To: <d0051192-8e86-403d-9aae-b988883ccfd9@gmail.com>
X-Cc: Jasper Mayone <me@jaspermayone.com>, kristofferhaugsbakk@fastmail.com,
 git@vger.kernel.org, gitster@pobox.com, sunshine@sunshineco.com,
 haraldnordgren@gmail.com
X-Mailer: iPhone Mail (23D8133)