New option to auto-add files modified by hooks

This commit is contained in:
Mike Mabey 2019-09-21 17:01:47 -06:00
parent 858e89865e
commit 094f8aa0a4
4 changed files with 21 additions and 1 deletions

View file

@ -192,3 +192,8 @@ def check_for_cygwin_mismatch():
exe_type[is_cygwin_python], exe_type[is_cygwin_git],
),
)
def add_all(repo='.'):
cmd = ('git', 'add', '.')
cmd_output(*cmd, cwd=repo)