Git development
 help / color / mirror / Atom feed
From: Ben Knoble <ben.knoble@gmail.com>
To: Harald Nordgren <haraldnordgren@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>,
	Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com>,
	git@vger.kernel.org,
	Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
	Phillip Wood <phillip.wood123@gmail.com>,
	Jasper Mayone <me@jaspermayone.com>, Tuomas Ahola <taahol@utu.fi>
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	[thread overview]
Message-ID: <1D9D2E5D-904D-4799-B751-AC90913738D4@gmail.com> (raw)
In-Reply-To: <CAHwyqnUc19VhV-NWu0GdK5Q2YT01u7ufn2CpSaq_mcpyzupMhg@mail.gmail.com>

> Le 30 nov. 2026 à 15:22, Harald Nordgren <haraldnordgren@gmail.com> a écrit :
> 
> 
>> 
>>> diff --git a/Documentation/config/branch.adoc b/Documentation/config/branch.adoc
>>> index c2acd89c99..be9b296bda 100644
>>> --- a/Documentation/config/branch.adoc
>>> +++ b/Documentation/config/branch.adoc
>>> @@ -106,7 +106,7 @@ for details).
>>> 
>>> `branch.<name>.deleteMerged`::
>>>      If set to `false`, branch _<name>_ 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.
>> 
>> 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?

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[=merged,squashed,rebased]

where we accept more than one comma-separated modifier,
and « all » is an alias for all 3. And possibly the default if none are
specified ?

We could (later) support ^merged or -merged as negatives so that
« all,-merged » means the same as « squashed,rebased ».
And we could *maybe* shoehorn remove-worktrees there, too,
or make it a separate modifier flag.

Anyway, yes, I’m in favor of simplifying and unifying related concepts. 

  reply	other threads:[~2026-11-30 23:41 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29  7:30 [PATCH] branch: let --delete-merged find squash merged branches Harald Nordgren via GitGitGadget
2026-09-29  7:46 ` Kristoffer Haugsbakk
2026-09-29  7:52   ` Harald Nordgren
2026-09-29  8:08     ` Kristoffer Haugsbakk
2026-09-29 11:18       ` D. Ben Knoble
2026-09-29 13:31         ` Kristoffer Haugsbakk
2026-09-29 11:26 ` D. Ben Knoble
2026-09-29 13:44   ` Harald Nordgren
2026-09-29 13:52   ` Harald Nordgren
2026-09-29 15:28     ` D. Ben Knoble
2026-09-29 18:34       ` Harald Nordgren
2026-10-04  9:54   ` Phillip Wood
2026-10-04 22:28     ` Harald Nordgren
2026-10-08 15:25       ` Phillip Wood
2026-10-08 18:42         ` Harald Nordgren
2026-10-09  8:16           ` Kristoffer Haugsbakk
2026-10-09 11:11             ` Harald Nordgren
2026-10-09 11:18           ` Harald Nordgren
2026-10-09 13:40             ` Phillip Wood
2026-10-09 13:37           ` Phillip Wood
2026-10-09 15:27             ` Harald Nordgren
2026-10-08 17:51     ` D. Ben Knoble
2026-10-09 13:34       ` Phillip Wood
2026-10-11  9:41 ` [PATCH v2 0/2] " Harald Nordgren via GitGitGadget
2026-10-11  9:41   ` [PATCH v2 1/2] " Harald Nordgren via GitGitGadget
2026-10-11  9:41   ` [PATCH v2 2/2] branch: add --no-squashed to skip the squash search Harald Nordgren via GitGitGadget
2026-10-12  0:30   ` [PATCH v2 0/2] branch: let --delete-merged find squash merged branches Junio C Hamano
2026-10-12  9:50     ` Phillip Wood
2026-10-12 14:31       ` Harald Nordgren
2026-10-12 16:50       ` Junio C Hamano
2026-10-12 17:44         ` Harald Nordgren
2026-10-13  2:23           ` Junio C Hamano
2026-10-17 22:23             ` Harald Nordgren
2026-10-19  4:40             ` Jasper Mayone
2026-10-18 15:09         ` Harald Nordgren
2026-10-12 12:41     ` Harald Nordgren
2026-10-12 15:49       ` D. Ben Knoble
2026-10-21 12:28 ` [PATCH v3 0/3] " Harald Nordgren via GitGitGadget
2026-10-21 12:28   ` [PATCH v3 1/3] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-10-21 12:28   ` [PATCH v3 2/3] branch: let --delete-merged find rebase merged branches Harald Nordgren via GitGitGadget
2026-10-21 12:28   ` [PATCH v3 3/3] branch: add --squashed to find squash " Harald Nordgren via GitGitGadget
2026-10-21 17:35   ` [PATCH v3 0/3] branch: let --delete-merged " Jasper Mayone
2026-10-21 18:51     ` Harald Nordgren
2026-10-22 12:55       ` D. Ben Knoble
2026-10-22 14:41         ` Harald Nordgren
2026-10-22  5:49   ` Junio C Hamano
2026-10-22  7:18     ` Harald Nordgren
2026-10-22 16:33       ` Junio C Hamano
2026-10-22 16:57         ` Junio C Hamano
2026-10-22 17:31           ` Harald Nordgren
2026-10-22 17:44             ` Jasper Mayone
2026-10-22 17:56               ` Junio C Hamano
2026-10-23  9:07               ` Harald Nordgren
2026-10-22 17:44         ` Harald Nordgren
2026-10-22 12:59   ` D. Ben Knoble
2026-10-26  8:33 ` [PATCH v4 0/4] " Harald Nordgren via GitGitGadget
2026-10-26  8:33   ` [PATCH v4 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-10-26  8:33   ` [PATCH v4 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-10-26  8:33   ` [PATCH v4 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-10-26  8:33   ` [PATCH v4 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-10-29  4:30   ` [PATCH v4 0/4] branch: let --delete-merged find squash merged branches Jasper Mayone
2026-10-29  8:30     ` Harald Nordgren
2026-10-30 10:52 ` [PATCH v5 " Harald Nordgren via GitGitGadget
2026-10-30 10:52   ` [PATCH v5 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-10-30 10:53   ` [PATCH v5 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-10-30 10:53   ` [PATCH v5 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-10-30 19:14     ` Junio C Hamano
2026-10-31  8:09       ` Harald Nordgren
2026-10-30 10:53   ` [PATCH v5 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-10-30 19:25     ` Junio C Hamano
2026-10-31  8:10       ` Harald Nordgren
2026-11-01  8:22 ` [PATCH v6 0/4] branch: let --delete-merged find squash merged branches Harald Nordgren via GitGitGadget
2026-11-01  8:22   ` [PATCH v6 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-01  8:22   ` [PATCH v6 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-01  8:22   ` [PATCH v6 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-11-01  8:22   ` [PATCH v6 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-11-11  8:30     ` Harald Nordgren
2026-11-11 15:27       ` Jasper Mayone
2026-11-14 11:08         ` Harald Nordgren
2026-11-14 13:24 ` [PATCH v7 0/4] branch: let --delete-merged find squash merged branches Harald Nordgren via GitGitGadget
2026-11-14 13:24   ` [PATCH v7 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-14 13:24   ` [PATCH v7 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-14 13:24   ` [PATCH v7 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-11-14 13:24   ` [PATCH v7 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-11-14 17:14     ` Tuomas Ahola
2026-11-16 16:16     ` Jasper Mayone
2026-11-17 13:24 ` [PATCH v8 0/4] branch: let --delete-merged find squash merged branches Harald Nordgren via GitGitGadget
2026-11-17 13:24   ` [PATCH v8 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-17 13:24   ` [PATCH v8 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-17 13:24   ` [PATCH v8 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-11-17 13:24   ` [PATCH v8 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-11-18 23:05     ` Junio C Hamano
2026-11-19 15:14       ` Jasper Mayone
2026-11-20 14:24 ` [PATCH v9 0/4] branch: let --delete-merged find squash merged branches Harald Nordgren via GitGitGadget
2026-11-20 14:24   ` [PATCH v9 1/4] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-20 18:57     ` Junio C Hamano
2026-11-20 19:10       ` Junio C Hamano
2026-11-21 20:34         ` Harald Nordgren
2026-11-22  0:57           ` Junio C Hamano
2026-11-20 14:24   ` [PATCH v9 2/4] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-20 19:32     ` Junio C Hamano
2026-11-21 20:36       ` Harald Nordgren
2026-11-30 16:18       ` D. Ben Knoble
2026-11-20 14:24   ` [PATCH v9 3/4] branch: add --delete-integrated to delete rebase and squash merged branches Harald Nordgren via GitGitGadget
2026-11-20 20:02     ` Junio C Hamano
2026-11-30 20:21       ` Harald Nordgren
2026-11-30 23:41         ` Ben Knoble [this message]
2026-12-02 21:44         ` Junio C Hamano
2026-11-20 14:24   ` [PATCH v9 4/4] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-11-20 20:08     ` Junio C Hamano
2026-11-20 23:02   ` [PATCH v9 0/4] branch: let --delete-merged find squash merged branches Junio C Hamano
2026-11-21 20:41 ` [PATCH v10 0/5] " Harald Nordgren via GitGitGadget
2026-11-21 20:41   ` [PATCH v10 1/5] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-21 20:41   ` [PATCH v10 2/5] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-21 20:42   ` [PATCH v10 3/5] branch: let --dry-run preview -d and -D Harald Nordgren via GitGitGadget
2026-11-21 20:42   ` [PATCH v10 4/5] branch: add --delete-integrated for rebased or squash-merged branches Harald Nordgren via GitGitGadget
2026-11-21 20:42   ` [PATCH v10 5/5] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-11-22  4:19   ` [PATCH v10 0/5] branch: let --delete-merged find squash merged branches Jasper Mayone
2026-11-23 21:24   ` Junio C Hamano
2026-11-24 14:24     ` Harald Nordgren
2026-11-24 20:15       ` Junio C Hamano
2026-11-24 22:43         ` Harald Nordgren
2026-11-25  1:04           ` Junio C Hamano
2026-11-25 12:52 ` [PATCH v11 " Harald Nordgren via GitGitGadget
2026-11-25 12:52   ` [PATCH v11 1/5] branch: move the deleteMerged opt-out check into a helper Harald Nordgren via GitGitGadget
2026-11-25 12:52   ` [PATCH v11 2/5] branch: let delete_branches() name where a branch landed Harald Nordgren via GitGitGadget
2026-11-25 12:52   ` [PATCH v11 3/5] branch: let --dry-run preview -d and -D Harald Nordgren via GitGitGadget
2026-11-25 12:52   ` [PATCH v11 4/5] branch: add --delete-integrated for rebased or squash-merged branches Harald Nordgren via GitGitGadget
2026-11-25 12:52   ` [PATCH v11 5/5] branch: let --delete-integrated find branches merged onto changed files Harald Nordgren via GitGitGadget
2026-12-01 10:25   ` [PATCH v11 0/5] branch: let --delete-merged find squash merged branches Kristoffer Haugsbakk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1D9D2E5D-904D-4799-B751-AC90913738D4@gmail.com \
    --to=ben.knoble@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitgitgadget@gmail.com \
    --cc=gitster@pobox.com \
    --cc=haraldnordgren@gmail.com \
    --cc=kristofferhaugsbakk@fastmail.com \
    --cc=me@jaspermayone.com \
    --cc=phillip.wood123@gmail.com \
    --cc=taahol@utu.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox