Skip to content

Support exclude-regex #120

Description

@mcico

Hello,

I recently switched to use git-delete-merged-branches (from git-trim). I like the approach of git-dmb, in particular the safety net we get.

In #52 the support of --include-regex was added. I would appreciate the same feature, but for the exclusion.

In our company we work on many git repository (on many different projects), while we all follow a common branch naming pattern, where we for example use release/<version> as a pattern for branches we must keep for a longer time around.

Based on that I would like to add an --exclude-pattern which skips all branches of the given pattern, in my case release/.* from deletion.
While I could add entries to the git config with a few bash commands, I would have to do that for each and every git repository and update it regularly, whereas with the pattern I could just add it to my global git config and be sure that such branches are not deleted by accident.

cheers & thanks,
marco

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions