From e23958ba3b639a24f59c32a018efdbaddd4ca98b Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 3 Dec 2022 19:10:10 +0100 Subject: make .gitattributes more consistent --- scripts/pre-commit | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 scripts/pre-commit (limited to 'scripts/pre-commit') diff --git a/scripts/pre-commit b/scripts/pre-commit deleted file mode 100755 index 8a98a0e..0000000 --- a/scripts/pre-commit +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/env bash - -set -o errexit -o nounset -o pipefail -shopt -s inherit_errexit lastpipe - -if ! command -v git-clang-format &> /dev/null; then - echo "Please make sure git-clang-format is available." >&2 - exit 1 -fi - -output="$( git clang-format --style file --diff )" - -ok1='no modified files to format' -ok2='clang-format did not modify any files' - -if [ "$output" != "$ok1" ] && [ "$output" != "$ok2" ]; then - echo "$output" - echo - echo 'clang-format required some formatting fixes.' - echo 'Please stage your changes, run `git clang-format`, review the formatting fixes, and commit.' - exit 1 -fi -- cgit v1.2.3