mirror of
https://github.com/pbek/QOwnNotes.git
synced 2025-06-29 05:19:55 +00:00
14 lines
337 B
Bash
14 lines
337 B
Bash
|
#!/usr/bin/env bash
|
||
|
# pre-commit hook script
|
||
|
|
||
|
echo "Running pre-commit hook with treefmt"
|
||
|
|
||
|
# Run treefmt to format the code
|
||
|
just fmt --fail-on-change
|
||
|
|
||
|
# Check if there are any changes after formatting
|
||
|
#if ! git diff-index --quiet HEAD --; then
|
||
|
# echo "Code has been formatted. Please review the changes and commit again."
|
||
|
# exit 1
|
||
|
#fi
|