zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 73 forks source link

[Feature] Locked branches (no commit, no push) #367

Open zielu opened 2 years ago

zielu commented 2 years ago

I always work with multiple branches, and we have some branches that we are not allowed to push or commit anything, I know we can manage this on the admin setting, but on our machine, if there is a way where we can add few branches which shows the locked symbol so that we can not commit or push the code by mistake.

scruel commented 2 years ago

Nice idea for some branches!

zielu commented 2 years ago

So what would we useful here is visual indication of branch being locked ?

Preventing commit is not hard - just implement another pre commit handler.

If we are talking actively preventing push, it requires doing one of two ugly things:

mastacheata commented 2 years ago

I really like the visual indicator idea.

Not sure the pre-commit-hook is something I'd like an IDE plugin to interfere with, though.