CI: use 'git diff $commits' as a whole patchset to do checkpatch
So avoid the duplicate print logs sometimes and rename file not opened issue.
@@ -38,5 +38,4 @@ jobs:
cd apps
commits=`git log -1 --merges --pretty=format:%P | awk -F" " '{ print $1 ".." $2 }'`
git log --oneline $commits
- echo "../nuttx/tools/checkpatch.sh -g $commits"
- ../nuttx/tools/checkpatch.sh -g $commits
+ git diff $commits | ../nuttx/tools/checkpatch.sh -
