2025-03-02 17:17:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
. "$(dirname "$0")/_/husky.sh"
|
|
|
|
|
|
|
|
STAGED_CS=`git diff --cached --name-only --diff-filter=ACMR --pickaxe-regex "*.cs" | tr '\n' ';'`
|
|
|
|
|
|
|
|
dotnet husky run --group pre-commit --args $STAGED_CS
|
|
|
|
|
2025-03-07 10:50:59 +00:00
|
|
|
# amend the commit with the staged files
|
|
|
|
git add `git diff --cached --name-only --diff-filter=ACMR --pickaxe-regex "*.cs"`
|