include renames in git pre-commit hook (#6371)

master
Beau Fabry 2019-08-15 02:34:19 -07:00 committed by Lipis
parent 68d3e74afe
commit 2314640485
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Alternately you can save this script as `.git/hooks/pre-commit` and give it exec
```bash
#!/bin/sh
FILES=$(git diff --cached --name-only --diff-filter=ACM "*.js" "*.jsx" | sed 's| |\\ |g')
FILES=$(git diff --cached --name-only --diff-filter=ACMR "*.js" "*.jsx" | sed 's| |\\ |g')
[ -z "$FILES" ] && exit 0
# Prettify all selected files