-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support exclude-regex #120
Comments
Hi @mcico, I'll just do a quick braindump here so you have a reply quicker, if that's okay:
Let me digest this more, best, Sebastian |
Hoi @hartwork,
At the company I we work with older linux distributions (red hat 7 and 8) where I installed git-trim through linuxbrew. Unfortunately linuxbrew started to break on red hat 7 and 8, which is why I was looking for another solution. I think I came accross git-dmb through googling.
This is what I arealized as well, which is why I raised the request. When working with dozens of repositories, it would be nice to configure the default behaviour through a global config (e.g. in .gitconfig) or even in a separate configuration file. So I am looking for a way to automate cleaning up multiple repositories.
I understand that, I would expect that safety should win an din case of doubt to not delete a branch. Which means if a pattern would be used to exclude a branch it should win over a pattern that would include the same branch. cheers & thanks |
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 caserelease/.*
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
The text was updated successfully, but these errors were encountered: