Skip to content

Commit

Permalink
Formatting CI prints diff on failure. (#295)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Oct 20, 2023
1 parent dd4c8eb commit 7a3983a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci/check_clang_format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,8 @@ changes=$(git-clang-format 'HEAD~1' $DIRS_TO_FORMAT)
if [[ $(echo "$changes" | grep -n1 'changed files') ]]; then
echo "The following files require changes to pass the current clang-format"
echo "$changes"
echo ""
echo "This is the diff:"
git diff
exit 1
fi

0 comments on commit 7a3983a

Please sign in to comment.