1
0
forked from clan/clan-core

pre-commit: allow treefmt cache

cache should work now and speeds up things
This commit is contained in:
Jörg Thalheim 2023-08-24 16:26:03 +02:00
parent 56542ca5ef
commit be78e65b11

View File

@ -46,7 +46,7 @@ git stash push --quiet --keep-index --message "treefmt pre-commit"
trap restore_stash EXIT
# 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
git diff --name-only --exit-code