2 changed files with 12 additions and 8 deletions
@ -0,0 +1,8 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
FILES=$(git diff --cached --name-only --diff-filter=ACM "*.cs") |
||||||
|
if [ -n "$FILES" ] |
||||||
|
then |
||||||
|
dotnet format ./bitwarden-server.sln --no-restore --include $FILES |
||||||
|
echo "$FILES" | xargs git add |
||||||
|
fi |
||||||
Loading…
Reference in new issue