From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796082113; b=MrC67Eo7oUGith3bC60xyB6bM4YOJK/D+49vOFL4LObt7v80/uyaE5K4ekI9VYmdAxq/ qMLkz0YsdQY75iNT6oo9BNDMVbU+K2dZ+jPB6ekVmENSgyzI4nrML6/TqNR18bW3+9DtP 6Rg+cqryC01nTVzeWxj9kiWJ/MULBPXHxLI4Hs9TsF6ghOGFO6Chmtk6mK2slJtWxI0vJ f7nzRHTydx1dj9Mhk7YY3CL8PB7c6mPKQOjihsC7ngwftMFDtxLBLTZPtJbg4MhXwWuj2 9W2/TFFRo1XGmDidqZtpDEmYHusVbF81+/FMlws8TH3pFkq9diTrG4qvzs9bxXRI5sQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796082113; 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:From:Mime-Version:Subject:Date: Message-Id:References:Cc:In-Reply-To:To:X-Mailer; bh=Cc34054S7qoYMEEnBN0KEpWSbJajXvujbnvb3nr6cZo=; b=vWjYe4gk6VKxlIzJLaxrsFG9mCEiUb44mtu4qCH45jTp2GlwtrFPcq8JJMLcEAMNa5iC hAKP4gu1IcSk3yW28xL+QCvLAHKnB6tBpwoFGTEP42g1PmFzo8gdxM/ilE7FLMum6u6+7 qDZTP1kQVa16W03jYWmXwGQnrgRDoj+33nQoS7uhDHB+xQm1KZaNSdLzWzVeWAUwwC2IH YtBS0W5/APEVmFXdmHoYzSlZxx3NmCNTtRO2X8QubbUT2z8hLPX56xFY9F/ys3IUPQ2Lf 1X0F7sMQu07jKtinIbarP3hdBI669kwDnZUuHwe+69jV3VxA42908HjcbxtEEldKVzQ== 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="YzGV/q/K"; arc=none smtp.remote-ip=209.85.128.181 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 002AC606A31A for ; Mon, 30 Nov 2026 23:41:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 002AC606A31A Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com 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=YzGV/q/K Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-8b2d14968c9so106332267b3.0 for ; Mon, 30 Nov 2026 15:41:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796082112; x=1796686912; 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=Cc34054S7qoYMEEnBN0KEpWSbJajXvujbnvb3nr6cZo=; b=YzGV/q/KsJ+mol2yOO55vJQUQOhm0HhJ+dEnaZno4AQMZmrKjrujEQKrMyVG5Cpl/i vDjFtoxcOb/p5T1f9tPpDIL3Op9mcBpLyyhylodpYEQZyakPInCp7lCvp1/NvZEl9JGS LDXvCEEAGkRliCIlpckuCewpTzfww7x2cdzVKzZQarsgMFVO//MBYxWWRQXDvGXrcMjc pIHtqbGLh8Xl2rtEV2kL6dONsOPHpTTMIYlV8iLnEvV8YEBRZn+djfydrHe2vSagAfuK m4oXGt+gDiIXmMMKjH8c7IMSqo7MspWHXGtiLE8S8x2sZ5C2TsTsBMPgKIpMT6BxLnl5 K0ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796082112; x=1796686912; 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=Cc34054S7qoYMEEnBN0KEpWSbJajXvujbnvb3nr6cZo=; b=sMovmiZDETKCPOrocnZ8FUFiXSc4rnUEC8YkDgKCNHaPaa5/yrCdzj/y/WEHQr0M3M gCSwBqeQ2r02Diq0+Ei/hYqKkF4H7VkTkBYiVVn3ANlTMvJuziZGH7OYC+1ZK0DnU3rU mibpOPQgLmVC8MDd6TplqXpddP0BiOlEXK+zTIkj4r2QMih4uScd+2e/qmIC84rVVo2e ziZAvIqTI2YZYCks5VkhphcwUO60wBNwMH0KA7XBgPmK3J41odjBV3c09adl20o5Q2Om xNdMniFCxs5MXEFd78Xwk4aiN3vRlIAn2AU4LibkYT6gd2ilhbJADtF8mEF5KPsfvdp6 QpzA== X-Forwarded-Encrypted: i=1; AL+hErHNWtY9vSWiwIlYPKppCsvF48y54Zl+hzEfpe6KPZjFthKvGqv1PbxxEFWxMj5OOR4S7q0=@vger.kernel.org X-Gm-Message-State: APuU4Z9BSEgTIY+kcF7/3/Ug9rESshzVm0cbOXT+4OfHWCFgTseI2440 1yndbzJEeC8vCvgIngHa7KILEn2k9HXtL8iV55UpAL/PNhJ5WZffuqj0 X-Gm-Gg: AZFdTZfoU6xRCxJu7hHVQ4m3KpBtnugU96MDiau+sWd06HmeHJys2xtL0WDHBvxYg5a Q0tunwsH576QpOsO9isB0PhMGZgsnB5i3sbOPiuJZbmvM1n+5v/UAXiaFG3MJL/Zo5qWctC/z1D +yF/0SWsuWVXROkfUM2rBcosIGC02DBF7PWWNlOpYTrIfJTyrGpx0tocPIlv452DLgoAfh/EcVV 5tIJ5X3Enqf5BEqUHzmEh84NI17dpVLUKRXQCYLgeTKwIFcHzrlwT7Om1S2+aPkqjmIV+JqZSkX 50zkH/ULHkCM71UkkK6sXuAWvo6phELOkZVOWxTq7SQjiLfLVDAUPiKCxHWwd8byouAdvlJl2Hi t7D10GZzt7GU28NgOYCxZOJ5HH3qk07Jg1reIBW/nbHdgLL++xe6Ld7EVx2vQhoL4TfRLPk01GG 6HqIT3x0lS307/SxaotP+BGzfKJ+YJYW7o2dvn5SPOLuLwvswgvO1V2XNk6Gutkg9iao531Twc5 FAThrJJLpBoasYp94pAhw9UApYVlS8hpTYFS1b8ytZmj8zcQiBB9MxZtjdzAJaEdetIZucEW2Uc TQ2EpoxBXMZCLPyWHTeXnk0YHaGoRkb+3iGLn0VGcRnrz51hVRIS8A2AwFoXBhn77LThy6TnMhs 6vZQ3e1xtjKldQoUK6DAutoEeUErH6zGJ51ZPnWS/tHWCMgJlNAwqfZeM2cy/m8rwxcFcGMYzG7 E3hw== X-Received: by 2002:a05:690c:6c86:b0:8b3:c81:aba3 with SMTP id 00721157ae682-8b5204ab3e5mr118332897b3.40.1796082111856; Mon, 30 Nov 2026 15:41:51 -0800 (PST) Received: from smtpclient.apple ([2605:a601:9d46:600:b80c:bb2d:2327:e685]) by smtp.gmail.com with ESMTPSA id 00721157ae682-8b5202b085bsm137936687b3.16.2026.11.30.15.41.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Nov 2026 15:41:51 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Ben Knoble 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 (1.0) Subject: Re: [PATCH v9 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Date: Mon, 30 Nov 2026 18:41:40 -0500 Message-Id: <1D9D2E5D-904D-4799-B751-AC90913738D4@gmail.com> References: Cc: Junio C Hamano , Harald Nordgren via GitGitGadget , git@vger.kernel.org, Kristoffer Haugsbakk , Phillip Wood , Jasper Mayone , Tuomas Ahola In-Reply-To: To: Harald Nordgren X-Mailer: iPhone Mail (23D8133) > Le 30 nov. 2026 =C3=A0 15:22, Harald Nordgren a= =C3=A9crit : >=20 > =EF=BB=BF >>=20 >>> diff --git a/Documentation/config/branch.adoc b/Documentation/config/bra= nch.adoc >>> index c2acd89c99..be9b296bda 100644 >>> --- a/Documentation/config/branch.adoc >>> +++ b/Documentation/config/branch.adoc >>> @@ -106,7 +106,7 @@ for details). >>>=20 >>> `branch..deleteMerged`:: >>> If set to `false`, branch __ is exempt from >>> - `git branch --delete-merged`. Useful for a topic branch you >>> - intend to develop further after an initial round has been >>> - merged upstream. Defaults to true. Explicit deletion via >>> - `git branch -d` is unaffected. >>> + `git branch --delete-merged` and `--delete-integrated`. Useful >>> + for a topic branch you intend to develop further after an >>> + initial round has been merged upstream. Defaults to true. >>> + Explicit deletion via `git branch -d` is unaffected. >>=20 >> 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. >>=20 >> 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. >=20 > 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'. >=20 > 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? With context well paged out of my working memory, I cannot recall the distinction between the 2 already. I *guess* one is merged and the other is non-merge integrations (squash, rebase). But I still find that more complex than --delete-integrated[=3Dmerged,squashed,rebased] where we accept more than one comma-separated modifier, and =C2=AB all =C2=BB is an alias for all 3. And possibly the default if non= e are specified ? We could (later) support ^merged or -merged as negatives so that =C2=AB all,-merged =C2=BB means the same as =C2=AB squashed,rebased =C2=BB. And we could *maybe* shoehorn remove-worktrees there, too, or make it a separate modifier flag. Anyway, yes, I=E2=80=99m in favor of simplifying and unifying related concep= ts.=20=