summaryrefslogtreecommitdiff
path: root/hooks/pre-commit
diff options
context:
space:
mode:
authorGravatar bunnei2017-02-21 16:47:34 -0500
committerGravatar GitHub2017-02-21 16:47:34 -0500
commite971f17bb8ad4509be7170bce82d8e354c567201 (patch)
tree1555c6e96c174621802f4a3d57d60d7db10e1db1 /hooks/pre-commit
parentMerge pull request #2585 from MerryMage/sxtb16-sxtab16 (diff)
parenthook: remove clang-format check (diff)
downloadyuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.gz
yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.xz
yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.zip
Merge pull request #2579 from wwylele/no-clang-format-check
hook: remove clang-format check
Diffstat (limited to 'hooks/pre-commit')
-rwxr-xr-xhooks/pre-commit17
1 files changed, 0 insertions, 17 deletions
diff --git a/hooks/pre-commit b/hooks/pre-commit
index 04fdaf8ec..098a99216 100755
--- a/hooks/pre-commit
+++ b/hooks/pre-commit
@@ -24,20 +24,3 @@ If you know what you are doing, you can try 'git commit --no-verify' to bypass t
24END 24END
25 exit 1 25 exit 1
26fi 26fi
27
28for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do
29 if ! echo "$f" | egrep -q "[.](cpp|h)$"; then
30 continue
31 fi
32 if ! echo "$f" | egrep -q "^src/"; then
33 continue
34 fi
35 d=$(clang-format "$f" | diff -u "$f" -)
36 if ! [ -z "$d" ]; then
37 echo "!!! $f not compliant to coding style, here is the fix:"
38 echo "$d"
39 fail=1
40 fi
41done
42
43exit "${fail-0}"