dockerized clang-format error detection tool

This commit is contained in:
Bartosz Podrygajlo
2024-09-17 13:52:01 +02:00
parent 469d58f989
commit 771d11a148
4 changed files with 48 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
set -eo pipefail
BASE_COMMIT=$(git merge-base HEAD origin/develop)
git diff -U0 --no-color $BASE_COMMIT...HEAD | clang-format-diff -p1