mirror of
https://github.com/divnix/digga.git
synced 2024-07-14 18:30:25 +03:00
♻️ env
Add rm-locks to pre-commit
This commit is contained in:
parent
440bd820c6
commit
5fefcb1c28
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,2 @@
|
|||||||
result
|
result
|
||||||
.direnv
|
.direnv
|
||||||
examples/**/flake.lock
|
|
||||||
|
@ -11,6 +11,9 @@ diff="git diff-index --name-only --cached $against --diff-filter d"
|
|||||||
|
|
||||||
all_files=($($diff))
|
all_files=($($diff))
|
||||||
|
|
||||||
|
# Remove example lock files.
|
||||||
|
rm-locks
|
||||||
|
|
||||||
# Format staged files.
|
# Format staged files.
|
||||||
if ((${#all_files[@]} != 0)); then
|
if ((${#all_files[@]} != 0)); then
|
||||||
fmt "${all_files[@]}" &&
|
fmt "${all_files[@]}" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user