mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 10:31:46 +04:00
New option to auto-add files modified by hooks
This commit is contained in:
parent
858e89865e
commit
094f8aa0a4
4 changed files with 21 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue