Commit graph

5 commits

Author SHA1 Message Date
Marc Jay
8d2785b9d6 Amend approach for no-commit-to-branch to use regex matching based on
feedback. Adds --pattern optional argument which can be used alongside
--branch to block commits to a branch which matches a supplied
regex expression
2019-04-20 13:46:49 +01:00
Marc Jay
d6847c4827 Add wildcard matching to no-commit-to-branch hook so that commits can
be blocked on, for example, all release branches with 'release/*'
2019-04-09 23:53:39 +01:00
Anthony Sottile
030bfac7e4 Apply typing to all of pre-commit-hooks 2019-01-31 20:09:15 -08:00
Anthony Sottile
baec308367 Allow multiple branches to be protected
Original patch by @moas
2018-06-09 11:18:33 -07:00
Anthony Sottile
2aa7aeb572 git mv tests/{check_,}no_commit_to_branch_test.py 2018-06-09 11:10:43 -07:00
Renamed from tests/check_no_commit_to_branch_test.py (Browse further)