GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — InfiniTime/hooks/pre-commit at develop · feiyunwill/InfiniTime Expand file tree/ Copy pathpre-commitMore file actions executable file ·25 lines (23 loc) · 806 Bytes / Copy pathpre-commitFile metadata and controlsexecutable file ·25 lines (23 loc) · 806 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 #!/bin/bash if clang-format --version | grep -q 'version 11\.'; then CLANG_FORMAT_EXECUTABLE="clang-format" else CLANG_FORMAT_EXECUTABLE="clang-format-11" fi if ! command -v $CLANG_FORMAT_EXECUTABLE &> /dev/null then echo $CLANG_FORMAT_EXECUTABLE does not exist, make sure to install it exit 1 fi for FILE in $(git diff --cached --name-only) do if [[ "$FILE" =~ src/[A-Za-z0-9\ \-]+*\.(c|h|cpp|cc)$ ]]; then echo Autoformatting $FILE with $CLANG_FORMAT_EXECUTABLE $CLANG_FORMAT_EXECUTABLE -style=file -i -- $FILE git add -- $FILE elif [[ "$FILE" =~ src/(components|displayapp|drivers|heartratetask|logging|systemtask)/.*\.(c|h|cpp|cc)$ ]]; then echo Autoformatting $FILE with $CLANG_FORMAT_EXECUTABLE $CLANG_FORMAT_EXECUTABLE -style=file -i -- $FILE git add -- $FILE fi done |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |