1 2 3 4 5 6 7 8 9
#!/bin/sh # # Perform style check # baseCommit=$1 git clang-format --style=file:.clang-format \ --diff --extensions c,h "$baseCommit"