added logging to commit hooks

This commit is contained in:
Leyla Becker 2024-10-03 23:06:12 +02:00
parent c0167bd5d1
commit 8da184333e
2 changed files with 4 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
echo "restoring stashed changes"
git stash pop -q

View file

@ -1,5 +1,6 @@
#!/usr/bin/env bash
echo "stashing all uncommitted changes"
git stash -q --keep-index
echo "checking flakes all compile"
@ -14,6 +15,7 @@ echo "running linter"
RESULT=$?
echo "adding lint changes to commit"
git add -u
exit $RESULT