git/ci/run-style-check.sh

10 lines
137 B
Bash
Executable File

#!/bin/sh
#
# Perform style check
#
baseCommit=$1
git clang-format --style=file:.clang-format \
--diff --extensions c,h "$baseCommit"