Skip to content

Commit 744cb1b

Browse files
Exclude deleted files from the formatting check
Otherwise clang-format fails and this fails the whole PR Add .mm (Objective-C++) files to the filter Relates-To: OCMAM-157 Signed-off-by: Rustam Gamidov <[email protected]>
1 parent a03183a commit 744cb1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/misc/clang_format_ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ git branch --all
3939
git fetch origin master
4040
git branch --all
4141
# Get affected files and filter source files
42-
FILES=$(git diff-tree --no-commit-id --name-only -r origin/master "$CURRENT_BRANCH" \
43-
| grep '\.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx')
42+
FILES=$(git diff-tree --no-commit-id --name-only --diff-filter=d -r origin/master "$CURRENT_BRANCH" \
43+
| grep '\.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx\|\.mm')
4444

4545
if [ -z "$FILES" ]; then
4646
printf "No affected files, exiting.\n"

0 commit comments

Comments
 (0)