Commit 620c2f21 authored by Felipe Lema's avatar Felipe Lema
Browse files

diff against master (no origin), print needed formatting change

- also, don't run any clang-format if no c++ files were found
parent 493089ba
Pipeline #70807 failed with stage
in 1 minute and 5 seconds
......@@ -13,5 +13,4 @@ clang_format:
- update-ca-certificates
- wget -c --output-document=.clang-format
- git diff-tree --no-commit-id --name-only -r origin/$CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA | grep -P '[.](c|cc|cpp|hpp|h)$'| xargs --verbose clang-format-11 -i
- git diff --exit-code
- git diff-tree --no-commit-id --name-only -r $CI_MERGE_REQUEST_TARGET_BRANCH_NAME -r $CI_COMMIT_SHA | grep -P '[.](c|cc|cpp|hpp|h)$' | xargs --no-run-if-empty --verbose clang-format-11 --dry-run -Werror
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment