mirror of
https://github.com/divnix/digga.git
synced 2024-11-22 02:27:05 +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
|
||||
.direnv
|
||||
examples/**/flake.lock
|
||||
|
@ -11,6 +11,9 @@ diff="git diff-index --name-only --cached $against --diff-filter d"
|
||||
|
||||
all_files=($($diff))
|
||||
|
||||
# Remove example lock files.
|
||||
rm-locks
|
||||
|
||||
# Format staged files.
|
||||
if ((${#all_files[@]} != 0)); then
|
||||
fmt "${all_files[@]}" &&
|
||||
|
Loading…
Reference in New Issue
Block a user