Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Filter out deleted files before formatting
  • Loading branch information
rage28 committed Jul 27, 2018
commit debfb93a03f03ef3d62a41b9b8c596681fac3b0f
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e
# Retrieve staged files
STAGED_FILES_FILE=$(mktemp)
git diff --cached --name-only > "${STAGED_FILES_FILE}"
git diff --cached --name-only --diff-filter=d > "${STAGED_FILES_FILE}"
# Process the files
%s git-code-format:on-pre-commit -DstagedFilesFile=${STAGED_FILES_FILE} %s
# Add the files to staging again in case they were modified by the process
Expand Down