Files
scx/.githooks/pre-commit
2025-04-26 15:04:19 -04:00

11 lines
137 B
Bash
Executable File

#!/bin/sh
echo "Running cargo fmt..."
cargo fmt --all
# Stage any files modified by cargo fmt
git add $(git diff --name-only)
exit 0