PalacePal/.githooks/pre-commit

9 lines
169 B
Plaintext
Raw Permalink Normal View History

2022-12-01 16:56:26 +00:00
#!/bin/sh
#
# Use with:
#
# $> git config core.hooksPath .githooks
2023-02-09 21:07:09 +00:00
if ! git diff --cached --quiet -- "*.cs"; then
dotnet format --verbosity quiet --exclude vendor/
fi