PalacePal/.githooks/pre-commit

9 lines
169 B
Bash
Executable File

#!/bin/sh
#
# Use with:
#
# $> git config core.hooksPath .githooks
if ! git diff --cached --quiet -- "*.cs"; then
dotnet format --verbosity quiet --exclude vendor/
fi