From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=202.12.124.159 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796247891; b=fKfu26ivoQni0XsaeivjneKHG7jqAQTxTSpDOErDq4o7uTUOa2pbmGILnksDmEeG0bh1 7VnDrBDpbVfKJSIcSLaORRXCy4ONl1vv3FdBoyNgVoCaki+/4+gg4J5o+KJ4dC8bYaANY oGdBQq48xG1X36sxtVd5z9g396VxDJG4ZQcPvZ1D6yLqnapObCim+VdjsBdfwYxi1xb1H VByy0cjxpUFoqyGC/X4hSc4+8Wyh529l4+PZusg5vS33Z3oLPRWUKPTM2Aomlupav6jBl Yto3mjnesNd9He3tDnsICh39mroCpCHq5V1Vb0f+XGPngWbpMA1d3+yLxd4N2K10MWQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796247891; h=DMARC-Filter:Received:Received:DKIM-Signature:DKIM-Signature: X-DKIM2-Info:DKIM2-Signature:X-DKIM2-Info:Message-Instance: X-ME-Sender:X-ME-Received:X-ME-Proxy-Cause:X-ME-Proxy:Feedback-ID: Received:From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: User-Agent:MIME-Version:Content-Type; bh=2Otls8XIXw7ibenvrXTY6emJ9vdw2AKoPiAEvMSYJX4=; b=fPo1Ep7f9EdWtmeA0LuNAAOFXnYpz5sgAZqDVZDsTsYjfhsuJZ9+vyTB8Dhr3Ccwr9km CtXZt2SJvPVuv+pf/fOhCY+yXmFNJ0TmEgtiDymtArxK+U5HTLHf7rV7E3mqJhYtjEzR2 xaTI15wmarGYe9mueniJBJ6jGW8zZ/EXt4u97lLZp+vTyX+X/QpMnTK2fSqqi3L8Dye3I rYq+Os0l5KQs6Kfp0Jjv6C2uKKdDaUVKb2P16KapVPikeQSB9WCAcOgdImvIhnAhLeJjc rGGyuZrSt2Vyad29kutt6mE9oK60RiSIk9kTcqks+pIAHIpjEj41eS/XOR8OkJtWeUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=pobox.com; spf=pass smtp.mailfrom=pobox.com; dkim=pass header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b="E9/mvRme"; dkim=pass header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Noe22ACw; arc=none smtp.remote-ip=202.12.124.159 Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61528606A32F for ; Wed, 2 Dec 2026 21:44:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 61528606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=pobox.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pobox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pobox.com header.i=@pobox.com header.a=rsa-sha256 header.s=fm2 header.b=E9/mvRme; dkim=pass (2048-bit key, unprotected) header.d=messagingengine.com header.i=@messagingengine.com header.a=rsa-sha256 header.s=fm3 header.b=Noe22ACw Received: from phl-compute-07.internal (phl-compute-07.internal [10.202.2.47]) by mailfhigh.stl.internal (Postfix) with ESMTP id C0B157A01BF for ; Wed, 2 Dec 2026 16:44:50 -0500 (EST) Received: from phl-frontend-01 ([10.202.2.160]) by phl-compute-07.internal (MEProxy); Wed, 02 Dec 2026 16:44:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pobox.com; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1796247890; x=1796334290; bh=2Otls8XIXw 7ibenvrXTY6emJ9vdw2AKoPiAEvMSYJX4=; b=E9/mvRmeRpWaS4L536toyHhcSD HgIUZzBmTnlvikKDHnEJjn94DIGW1BR83K94pwrynQnvooRtX8ZWEeL5RZua1iiR i0XI0TLiQuGPyQCrhMaSAPUVM+T0+3HueVixd3Q7S783PpQ/yIvxPutrWInk2qXh P2qi3J8ctk6+xbEoqOizKw3qJLqQ+lIupH/lcS4+bO7sexkjBcmLMGrPwV7vhXg3 BFz5LwHpwG3Z9AlCCnEhAh4Af5I3qE+hlqCa3FJYJ+fFZRVdwHiKQKxW7wJlFg41 dZV351uINjo+CmsLIMBf7f1T2AQiZzIWjylguSHtrr/i6Xk71JpHkVJYhIJw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1796247890; x=1796334290; bh=2Otls8XIXw7ibenvrXTY6emJ9vdw2AKoPiA EvMSYJX4=; b=Noe22ACwDIc1/2pB3tV8t9f3LyZLUHKQsa25mm5f7TtE0aw6KYa hpkooBKcv30rvxx19S8WTgCACMaLuSzv+yL6/rUVr1z7OoYLITfhhk/vnU/yXdMI +ClnJ0Wn9YoMKtWZ4NOW+tG2E4FNUYEoAQMlYtDNohLLFm7Sob2g/yd3uIvtiC7m 35bX5c/4/CdPMdiZsJRE6f8r8r7HFUNIlmEUp2sXyma2hheng3uOFdz0mXf0Jsy0 Ui5HxXn3yu2S6X+PNqP3w8gaUYXSGiCtQI0KMmQLFngXwPO/kTaB1zrjNxFHFW+G XDXr4i1YBqWu+o6sMimb3Z5mnhtdJUsOXeg== X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=sign d=pobox.com a=rsa-sha256; DKIM2-Signature: i=1; m=1; t=1796247890; d=pobox.com; mf=PGdpdHN0ZXJAcG9ib3guY29tPg==; rt=PGdpdEB2Z2VyLmtlcm5lbC5vcmc+; s=fm2:rsa-sha256:NeUb8rjDMA44IWgAlBiBjPiy2FdxPO+g52+SrJPP1Q5SZxi 7UaMIUWnSmLYnw4il6PS5lC8lOsNr0n/XMVpfDObufIH19ZaQnUkxhTVj/O/JBRy 2HW3rGTnqUR0ta8zjuPwVjWHfrJgSOmp2aYbp3Pk0wnJxWSkpNTtQx6B7yCLepVI ViJeKUIzFe5t2MFkmV+Dyr5abqTbvQ4vTLf0OohWGjI3nw0Im2cAEcagyVZGTCS1 N6euzebUX2ZxOIaho+vyOFgGeRwu+CG23K8QYOMID/ANT+38WdsL0voRYHkw3Kz4 OguXtkAK+KLrz8QZk2qYXLCwHPK0WjqCt6jFuJg==; X-DKIM2-Info: draft=ietf-dkim-dkim2-spec-09; repo=github.com/dkim2wg/interop; date=2026-11-03; sw=lmtpprox; action=mi-m=1; hc=12; hn=cc,content-type,date,feedback-id,from,in-reply-to,message-id, mime-version,references,subject,to,user-agent; Message-Instance: m=1; h=sha256:pFNoRvrS8/fNYflSpLQ9I4cakL3rOnlhr/76Doi6/dY=:J7D4dCILPsnhma6nYZop4h4sgu8yPlV5UETXW2zkCnc=; X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: dmFkZTFo43XgdqSDRJq/leJMeD8VavxwlroMCTcVwsplgRlxwo9P4RSS43XN5aV1lGpBCh y9Xkvhk+JrWprSF1JvMwKURXLDO5gedT2eH6C849lWMrtf9xN94eX466bUp8rAyjs1lR3C PsljuyUHySs/L8GUTmjRXumYV6tF8eX08Cy8DvfKi1nO+NgdiViQqgnvByyXJW+IPeViMY DI0DYDYsPQMYwWi7bzC8BifZruRyXy3w1weP8dyF2fVqr3MvMoi+jVuoidfvHidc48SIfr 6JdakY6rtQlWL0qsJ9CIJ3d00Coa4kMDA0AQ/PG8DEBuBlxNOWfXqwdcP3TyFFMcCv1afT qk6Fw9D9QYECiU7FvAlXhhEfpl+2wuBpvdi4i7YmjfYGTwjJJR6ZU2rxe7iPVCXHp0Cei7 sghyi+Is1i7F7R+BdJJ4yjYyD+aF15Q/umG8AXhvwHELwHzluHURWqp2p6FmPFwCWoTaP9 MvpN9snk2pBfwQ0lqrauyY8AH3AUvItxl0EnyyEW4+ghB3YhqK8fP+BQwKvq7sCirxGj5g NtGO1njkwxbX12Nz9/LQS9zmHmZWAnRz44dKpl0Ijkf8B/Qaq+LxpFnJ6RtQ78tPMB66F9 1vDUzGheo2KAka42eCmROkgiHyq9QyjAMcykfVdq5fFg93HwzCOBQGDpyr1g X-ME-Proxy: Feedback-ID: if26b431b:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 2 Dec 2026 16:44:49 -0500 (EST) From: Junio C Hamano To: Harald Nordgren Cc: Harald Nordgren via GitGitGadget , git@vger.kernel.org, Kristoffer Haugsbakk , "D. Ben Knoble" , Phillip Wood , Jasper Mayone , Tuomas Ahola Subject: Re: [PATCH v9 3/4] branch: add --delete-integrated to delete rebase and squash merged branches In-Reply-To: (Harald Nordgren's message of "Mon, 30 Nov 2026 21:21:46 +0100") References: <1f922a00344f6b86dcc0054b3117f1bbad247810.1795184664.git.gitgitgadget@gmail.com> Date: Thu, 03 Dec 2026 06:44:48 +0900 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) X-Mailing-List: git@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain Harald Nordgren writes: >> Does the deleteMerged configuration variable affect the behavior of >> the "--delete-integrated" option? Knowing how the feature evolved, >> it is understandable to me, but I suspect it won't be natural for >> mere mortals. >> >> Perhaps a single .deleteDone variable that governs both would be >> more future-proof, as it anticipates that we may find other ways a >> branch becomes "done", other than by getting merged or otherwise >> integrated, and when that happens this variable will also deal with >> such a new destructive operation. > > I thought about this some more, because I'm sketching out a > '--delete-merged --remove-worktrees' follow-up, and realized that this > will need to be added to two places as well, '--delete-merged' and > '--delete-integrated'. > > So it seems maybe it's better to not have '--delete-integrated' as a > separate thing? Should we unify it now when we still have the chance? My suggestion to use a single branch.*.deleteDone was more about making it easier to disable the feature so that you do *NOT* lose your branches, by needing to set only one variable and disable all forms of "compare with upstream and if it appears that the branch is no longer needed to be upstreamed (for different reasons, like 'merged as-is exactly' or 'have equivalent changes there already'), then remove ours" for safety. I somewhat doubt that those who use '--delete-merged' want to lose a branch that did not get merged upstream. It makes sense to keep "please remove branches that have been merged" and "please remove branches that do not need to be upstreamed anymore" as two separate classes of requests. Allowing '--delete-merged' to remove branches that are not merged but have lost reasons to be upstreamed is making it easier to lose your branches, which I wasn't interested in seeing, at least when I wrote about the '.deleteDone' idea.