Skip to content

Commit 2b5d0bd

Browse files
committed
only format committed files
1 parent 4364092 commit 2b5d0bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ diff="git diff-index --name-only --cached $against --diff-filter d"
1111
all_files=($($diff))
1212

1313
# Format the entire tree.
14-
treefmt
14+
treefmt "${all_files[@]}"
1515

1616
# check editorconfig
1717
editorconfig-checker -- "${all_files[@]}"

0 commit comments

Comments
 (0)