diff options
author | bunnei <bunneidev@gmail.com> | 2017-02-21 22:47:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-21 22:47:34 +0100 |
commit | e971f17bb8ad4509be7170bce82d8e354c567201 (patch) | |
tree | 1555c6e96c174621802f4a3d57d60d7db10e1db1 | |
parent | Merge pull request #2585 from MerryMage/sxtb16-sxtab16 (diff) | |
parent | hook: remove clang-format check (diff) | |
download | yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.gz yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.bz2 yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.lz yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.xz yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.tar.zst yuzu-e971f17bb8ad4509be7170bce82d8e354c567201.zip |
-rwxr-xr-x | hooks/pre-commit | 17 |
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}" |