Skip to content
Snippets Groups Projects
Commit 7f98f86a authored by Nikolay Karpushkin's avatar Nikolay Karpushkin
Browse files

Clang format fix

parent 683b0761
No related branches found
No related tags found
No related merge requests found
......@@ -39,12 +39,12 @@ case $1 in
check)
echo "Checking if there are format changes required"
git fetch $UPSTREAM
$GIT_CLANG_FORMAT_BIN --commit $BASE_COMMIT --diff $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN --binary $CLANG_FORMAT_BIN --commit $BASE_COMMIT --diff $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
;;
apply)
echo "Applying required format changes"
$GIT_CLANG_FORMAT_BIN --verbose --commit $BASE_COMMIT $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
$GIT_CLANG_FORMAT_BIN --binary $CLANG_FORMAT_BIN --verbose --commit $BASE_COMMIT $CHANGED_FILES --extensions h,hpp,c,C,cpp,cxx,tpl
git status
echo "Next step: git add "$CHANGED_FILES
echo 'Then : git commit -m"Apply clang-format"'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment