From: Harald Nordgren Date: Fri, 09 Oct 2026 11:11:30 GMT Subject: Re: [PATCH] branch: let --delete-merged find squash merged branches Message-ID: In-Reply-To: On Fri, Oct 9, 2026 at 10:16 AM Kristoffer Haugsbakk wrote: > > On Thu, Oct 8, 2026, at 20:42, Harald Nordgren wrote: > >> Even an efficient implementation is going to be a lot slower when it is > >> trying to find branches that have been squashed, so I think we probably > >> do want a way to turn it off. That's especially true in partial clones > >> where we'll have to download a bunch of blobs to do the squash > >> detection. So long as it isn't diabolically slow enabling it by default > >> is probably fine. > > > > A bit slower (depends on how much!) could be worth it for improved > > usability. This is not a command that users will run multiple times a > > day. > > I would really like a solid delete operation that I can run, say, > overnight. I have better hygiene practices today but I didn’t back then, > so things have piled up. > > One big cleanup is worth a nightly run. So I don’t care about how slow > it is. I would love to have a `full-clean` command that bundles `deleted-merged` and all `prune` commands, and uses sensible defaults for each one. (I have a hard time believing that it would need to run overnight anyway). I have known people who just delete the whole repo on any signs of trouble. People out there are so scared of Git, so let's give them sensible defaults to work with. Harald