forked from deepStateMirrors/tabi
👷 misc(CI): ignore deleted files in pre-commit
This commit is contained in:
parent
557ea7786f
commit
f93def0692
1 changed files with 2 additions and 2 deletions
|
@ -148,8 +148,8 @@ fi
|
||||||
# Ensure JavaScript files are minified. #
|
# Ensure JavaScript files are minified. #
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# Get the newly added and modified files.
|
# Get the newly added and modified files, but not deleted files.
|
||||||
mapfile -t all_changed_files < <(git diff --cached --name-only)
|
mapfile -t all_changed_files < <(git diff --cached --name-only --diff-filter=d)
|
||||||
|
|
||||||
script_name=$(basename "$0")
|
script_name=$(basename "$0")
|
||||||
# Loop through all newly added or modified files.
|
# Loop through all newly added or modified files.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue