forked from clan/clan-core
pre-commit: allow treefmt cache
cache should work now and speeds up things
This commit is contained in:
parent
56542ca5ef
commit
be78e65b11
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user