Skip to content

Commit f5ad355

Browse files
author
Teppo Järvelin
committed
travis: exclude deleted files for astyle.
1 parent 24213b4 commit f5ad355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ matrix:
129129
- astyle --version
130130
script:
131131
# only changed files this time
132-
- git diff --name-only $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
132+
git diff --name-only --diff-filter=d $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
133133
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
134134
git --no-pager diff;
135135
echo "";

0 commit comments

Comments
 (0)