🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.git
Article #1834

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

#1834
From: Phillip Wood
Date: Thu, 29 Oct 2026 16:10
34 lines
12528 bytes
On 29/10/2026 14:23, Ben Knoble wrote:
> 
>> 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.

That's an interesting point. I agree "git worktree remove" shouldn't 
remove a worktree that's in the middle of a rebase or bisect. To me that 
is a bug in "git worktree remove" that is more likely to be triggered if 
we start reporting the worktree where branches are being rebased.

Thanks

Phillip
Technical Details
Message-ID: <ef4874c2-c619-4773-9399-08c48503c3e3@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-73787-linux-kernel-git=dewy.ru
References: <d0051192-8e86-403d-9aae-b988883ccfd9@gmail.com> <A0B73028-E3BF-45CE-8468-AA9B022C41F6@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-73787-linux-kernel-git=dewy.ru
From: phillip.wood123@gmail.com (Phillip Wood)
Newsgroups: linux.kernel.git
Subject: Re: [PATCH v2] worktree list: add --branch to select worktrees by
 branch
Date: Thu, 29 Oct 2026 16:10:03 +0000
Organization: Usenet Network
Message-ID: <ef4874c2-c619-4773-9399-08c48503c3e3@gmail.com>
References: <d0051192-8e86-403d-9aae-b988883ccfd9@gmail.com>
 <A0B73028-E3BF-45CE-8468-AA9B022C41F6@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2046249"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:dmq9DF1A8Jt0RtIzsjJB9ulawu0= sha256:MtE6IsWBNCOfayLeBPs/4CIALI9WQwNWlcXw0StguwA=
	sha1:2vDx+4cazYJ9sFzlWQj72MWkjoM= sha256:yOCdFbGduw7wTaxkoPWQreRWKQphOB1fKV8ZB1qErdQ=
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 69601125C6D; Thu, 29 Oct 2026 19:26:30 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -1.948
X-Spam-Status: No, score=-1.948 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.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 JtV3vGIT4arH;
	Thu, 29 Oct 2026 19:26:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=git+bounces-73787-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 9F483125C65; Thu, 29 Oct 2026 19:26:18 +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 349582CA90; Thu, 29 Oct 2026 16:11:43 +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=1793290210;
	b=0yYuW7vFZm/op6oPWevVTAXCK22wvHdz3iKFa2iPZCcBjhfUOYN49dRgMKTPNILvqKM2
	 /OjCtZMCEn3peJB1DRlKmXxdwPRq7KTH7qGD3sH1Dk/geDmidwqB0G0VhccG+XAZRGFvS
	 Ge3UdGRRYNQ6BoJayueHIfhuiVcex1MNF0J1pzKQAwTsDamHOib63Tq/WThczn0NWeyej
	 lRma5lRVmvFT93eLpgZCYpBfWFSVOWEJTNA2/S9camwYVS7XU0gKPVVlcyzAPRmbEgiE2
	 mgMH+aqsGwqvc1tKWbr7Y7LUAXWjuoaomPCsQi//yi11O8NryPHXXVv8F+t+YNH7DRw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793290210;
	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=wh3jOvkxjQVSey7256AVAJXnjg/IewQJeNl63vSGwn0=;
	b=M1qfwNMfYGyNKg3W7dPKdTlqMl+5CLuovWfei2JyR8Gucq3Jk/2W3mrBJvET+qF/ajYI
	 hPEsLYupiUGh9ekx/XnPoPWXhWu3AAGTVyKXLPJVdtZV/tnprAIn3FPxWr/FMMRhAyvkr
	 5pd8nss6vExkqHmWfDlLjLy6eCwgFDEZpgCkfH4rb3eLeN89GmbMljL9HdbGWdYT52jzy
	 cDXrBtxiFCWpJ5eUq2n7eREN8NEgBDappnfTH2j8KHAzCTpGsQHinCpA6ToloG/wXIoP2
	 pHG1rw5p0sNvkqcYRNw6H5n2c1+ZjV9nhA1C2QzCY1N3CHvQ+UIHQWnSUmINFzJVRyg==
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=gOB4Wu7w;
	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 B360160A2624;
	Thu, 29 Oct 2026 16:10:10 +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=gOB4Wu7w
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793290209;
	b=V9RxRIIu+Ul4RVAsP4Y4bcnLiCcO/9S3Yte/0t5CJMoxH03+6SHcuBu/tlmPdj0KrlFU
	 eIoHYjSrrsG7CoEgh1JYwmU5VOgeelOb+OWsOfS36tB2eHqp9mhBSdgCPAZ2N09OxkMPd
	 aVyC6XRIj3cPyOdI7QIQGvoScRONSLD6qbwYQeM1xpCzj2qtatIU5TZs+hCakZoZT3bED
	 l5mRfIKv/hXWbu489gmHh77QjcslLHTA1gdjjcUffv9VDWAClgSPYnNW3KT7YxBv1Zfz3
	 lcxUSqhzhkOY/BBB1TfSKwu7OF8sijf6e2jCS9M1QKy1JN03tqzTICiRmJa7WZDqS8g==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793290209;
	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=wh3jOvkxjQVSey7256AVAJXnjg/IewQJeNl63vSGwn0=;
	b=B7YC3Q5/6F5EjTIrJbLLZRD9RXShDMsn9f4WM7c76xgD6foFCC6aBszDvK0gSJ7tqILm
	 5YJJ7umJqnAP3eIh4EM3zd1wCbSe0zfxzAU6Gx/b38+AspoaJodMbWRkzIajwX52qE7b9
	 ZTt1JzXqdefCXU64uZKgURJTLMFztwOJ5E/7fD4Hs7Wi4eWq8K4nGntUmjNMpydz/5VYp
	 QXS6ZPMEhMfH/P2GLGpCw0Z2kSfJb/LRSVl6iqlxKy8S3cxOltJEPd9sdCE5kPkvypwZA
	 MqEP+Z45oOsoYaCUe61tcQyqlZiQ8RWSbod6f61BBl5AZsCyFRL+hGYzPr/g+SGfYOA==
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=gOB4Wu7w;
	arc=none smtp.remote-ip=209.85.128.41
X-Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41])
	(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 84731606A31A
	for <git@vger.kernel.org>; Thu, 29 Oct 2026 16:10:09 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 84731606A31A
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-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4a5036bbac7so15135935e9.3
        for <git@vger.kernel.org>; Thu, 29 Oct 2026 09:10:09 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793290208; x=1793895008; 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=wh3jOvkxjQVSey7256AVAJXnjg/IewQJeNl63vSGwn0=;
        b=gOB4Wu7wyP+Hjr3kzyzJ7url7gkrrrfE+bBOZJY0NaJicEL+dE3lRkDIAB8FZOrDgK
         ULUXlGBs9zGpykZmF0CnI0YqthoMgTV4mur7Hc6f/Y+oNbQXQFJfqdMe786GBoRqqTLC
         5KLgPnfhUyk04/Q+3p/Yx8ojR/ZMRZfoMlWFASMNtwZvw7zuOvnmKY1MzLOJgpVrCnKj
         ZbKPe5kV62bGeYJlJJCuTPsrRX3UAhGQq/PdDs6TtRhPhVWIV1mxS+EgEXNJTK//vVPc
         V1qA5VjVydZ2/DHtmLRrTw4r3WWryyYWlnPUrUT5GFMkmBCtCQU719n1J+26LL+XThLg
         kxlw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793290208; x=1793895008;
        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:from:to:cc:subject:date
         :message-id:reply-to:content-type;
        bh=wh3jOvkxjQVSey7256AVAJXnjg/IewQJeNl63vSGwn0=;
        b=COZ2jkN6zcFXdIHGRw3BstFS3aexjPX6qG2Hwo7lKk8PTwFQj9UHMJrLLkpufkXUqZ
         1NFpQtaPRYjPBDwk5aIJvI66JLpkDC71DskjvqfmU8knNi9UFIpUnPWvsfCeAPZDV+2M
         8JR2E3uRLe6kbfXNZ0opXusjUhFMp0sam3XaWTx6ijarEfPOUShuo5hC1RxoK5/kIIsk
         ClkSKJ215N58IuRpRuoqG3I2+AxsmRLwyyd86fqaVoxkXA4jZf11B4hbyytt7GfA9zdA
         zxX71pca0x65ywdpYVm5XuGt422yl8CmmiG7xxjWKFAljOuVky6Go8HxC6Jh7HsZmO2S
         S5Yw==
X-Forwarded-Encrypted: i=1; AKwUvBxg4YiFpouguEgP+UHH8ZNFjKH6oTWZBvdy9/Tx0G9LcovJ7uMl8GHAcZFV2SuTRYQFuGU=@vger.kernel.org
X-Gm-Message-State: AFq9FYJJGGjpfC/Ki4dOq7QLcLk9pGsFiMiULZF2NwmwB8kchH2T+xum
	LLJJuA5XIMyrjyoW0epFXQQZvCDii8uUCM5EGZarImXNFhVuJ1AMHR9c
X-Gm-Gg: AYBFou14aVLCULCrl1QWKNFUAe9fPjwTfaw62E7wTOGJd1t11ChVc55IeJxQSJ2LH1u
	NmDvxxPOYElRUbuM5z5RjCJGvwhwsJyoyAeFne8MW6fZzfWoMiFA7xX9w2c4QqM5DNA4CsBev+b
	TH6iXxt979kqqiAmUk0vZyKwMDnW3+kyzX24n6G8H/E/cbqbJcZSTuUVhKFn8kBHTHoNUfA3BuJ
	CAEKAb/mhXP++ybBmG2xW1Mk7jI0s0j7yUi4iSM2QKArGXv3bso+L3eadgIPTYlpdjK+o6sTAWr
	80yN0CxgkMf/yLIp2QaJrFcIU7QXQoqLFFtsC2XXa2dj+V4Db2ay7NyqDCrYIv6Qcz5C6iRNS7v
	P4sHaMfFpSXLBtTbP++pY9HF0ZE6mGxGbidJppLj0Kbeh2LhNmoFPRE/QyxgVNPyVT3Hz5hz2K6
	ppWZvT2gdfLb3YvTZVzxYpUyilrpw3Dfpnu4kkkpsuczOfqIjWCNUeu2I2qP+5duUUrhsUAkSR4
	otp1lSGgDyTlErbo42gZxScLtT8M5N0YHj/D6y7ImdODymqpZQmjcwKu4fJUCEwQazkNG5lnyb1
	9ZRM0PHMI6JYXNSWurLvCiERYklVr6S85MDZVfssH7P3kATHeb5LXl2Ti0xy//EmvCFHA4QopBE
	EAKX7H8z+
X-Received: by 2002:a05:600c:4e44:b0:4a3:2f35:38aa with SMTP id 5b1f17b1804b1-4a967f84817mr132858325e9.29.1793290207721;
        Thu, 29 Oct 2026 09:10:07 -0700 (PDT)
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-48e6deafdb5sm185117f8f.0.2026.10.29.09.10.06
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Thu, 29 Oct 2026 09:10:07 -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-User-Agent: Mozilla Thunderbird
X-Reply-To: phillip.wood@dunelm.org.uk
X-Cc: Jasper Mayone <me@jaspermayone.com>, kristofferhaugsbakk@fastmail.com,
 git@vger.kernel.org, gitster@pobox.com, sunshine@sunshineco.com,
 haraldnordgren@gmail.com
X-In-Reply-To: <A0B73028-E3BF-45CE-8468-AA9B022C41F6@gmail.com>