Implement 'negate' to simplify pcre

This commit is contained in:
Anthony Sottile 2016-03-21 19:56:41 -07:00
parent b7d395410b
commit a932315a15
5 changed files with 51 additions and 39 deletions

View file

@ -67,10 +67,6 @@ def noop_context():
yield
def shell_escape(arg):
return "'" + arg.replace("'", "'\"'\"'".strip()) + "'"
def no_git_env():
# Too many bugs dealing with environment variables and GIT:
# https://github.com/pre-commit/pre-commit/issues/300