Skip to content

Commit f7b85d8

Browse files
fix: only check staged files
1 parent 5fe6a3e commit f7b85d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
STAGED=$(git diff --name-only --diff-filter=ACMR)
1+
STAGED=$(git diff --cached --name-only --diff-filter=ACMR)
22
yarn format
33

44
git diff --exit-code $STAGED || {

0 commit comments

Comments
 (0)