1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 13:21:13 +02:00

Excluding deleted files from clang-format Check

This commit is contained in:
Guillaume Chatelet
2020-10-12 07:18:05 +00:00
committed by GitHub
parent e63405f118
commit 7f62ff67c8

View File

@ -21,4 +21,4 @@ jobs:
run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --help run: docker run --rm --init -v $(pwd):/repo linter:latest clang-format --help
- name: Check current commit - name: Check current commit
run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$' | xargs clang-format --style=file --dry-run --Werror " run: docker run --rm --init -v $(pwd):/repo -w /repo linter:latest sh -c "git diff --diff-filter=d --name-only FETCH_HEAD | grep '\.c$\|\.h$\|\.cc$' | xargs clang-format --style=file --dry-run --Werror "