mirror of
https://github.com/icsharpcode/ILSpy.git
synced 2026-10-12 02:15:58 +00:00
Reduce verbosity of commit hook.
This commit is contained in:
@@ -36,11 +36,11 @@ DOTNET_FORMAT="$DOTNET_PATH/dotnet-format$EXE_SUFFIX"
|
||||
"$DOTNET_FORMAT" --version
|
||||
if [ "${1:-}" = "--format" ]; then
|
||||
# called via format.bat
|
||||
"$DOTNET_FORMAT" whitespace --no-restore --verbosity detailed ILSpy.sln
|
||||
"$DOTNET_FORMAT" whitespace --no-restore --verbosity normal ILSpy.sln
|
||||
elif git diff --quiet --ignore-submodules; then
|
||||
"$DOTNET_FORMAT" whitespace --no-restore --verbosity detailed ILSpy.sln
|
||||
"$DOTNET_FORMAT" whitespace --no-restore --verbosity normal ILSpy.sln
|
||||
git add -u -- \*\*.cs
|
||||
else
|
||||
echo Partial commit: only verifying formatting
|
||||
exec "$DOTNET_FORMAT" whitespace --verify-no-changes --no-restore --verbosity detailed ILSpy.sln
|
||||
exec "$DOTNET_FORMAT" whitespace --verify-no-changes --no-restore --verbosity normal ILSpy.sln
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user