pre-commit: allow treefmt cache
cache should work now and speeds up things
This commit is contained in:
@@ -46,7 +46,7 @@ git stash push --quiet --keep-index --message "treefmt pre-commit"
|
|||||||
trap restore_stash EXIT
|
trap restore_stash EXIT
|
||||||
|
|
||||||
# Run treefmt on the files in the index and record the result.
|
# Run treefmt on the files in the index and record the result.
|
||||||
nix fmt -- --no-cache "${commit_files[@]}"
|
nix fmt -- "${commit_files[@]}"
|
||||||
|
|
||||||
# Check if there is a diff
|
# Check if there is a diff
|
||||||
git diff --name-only --exit-code
|
git diff --name-only --exit-code
|
||||||
|
|||||||
Reference in New Issue
Block a user