summaryrefslogtreecommitdiffstats
path: root/hooks
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-02-17 10:28:39 +0100
committerwwylele <wwylele@gmail.com>2017-02-17 12:52:23 +0100
commitfa5bd0ab109757975fba4629836451e5b438c9a1 (patch)
tree8de615e6b89f3eb13bc4c8968c8a7ea56a179150 /hooks
parentHID: move enable_accelerometer/gyroscope_count initialization into Init() (#2574) (diff)
downloadyuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar.gz
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar.bz2
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar.lz
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar.xz
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.tar.zst
yuzu-fa5bd0ab109757975fba4629836451e5b438c9a1.zip
Diffstat (limited to 'hooks')
-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
END
exit 1
fi
-
-for f in $(git diff --name-only --diff-filter=ACMRTUXB --cached); do
- if ! echo "$f" | egrep -q "[.](cpp|h)$"; then
- continue
- fi
- if ! echo "$f" | egrep -q "^src/"; then
- continue
- fi
- d=$(clang-format "$f" | diff -u "$f" -)
- if ! [ -z "$d" ]; then
- echo "!!! $f not compliant to coding style, here is the fix:"
- echo "$d"
- fail=1
- fi
-done
-
-exit "${fail-0}"