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
|
|
@ -108,6 +108,7 @@ def run_opts(
|
|||
show_diff_on_failure=False,
|
||||
commit_msg_filename='',
|
||||
modified_files_ok=False,
|
||||
add_modified=False,
|
||||
):
|
||||
# These are mutually exclusive
|
||||
assert not (all_files and files)
|
||||
|
|
@ -123,6 +124,7 @@ def run_opts(
|
|||
show_diff_on_failure=show_diff_on_failure,
|
||||
commit_msg_filename=commit_msg_filename,
|
||||
modified_files_ok=modified_files_ok,
|
||||
add_modified=add_modified,
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue