Преглед изворни кода

Add command how to fix issue

Stefan Profanter пре 5 година
родитељ
комит
f378380f31
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      tools/travis/travis_linux_script.sh

+ 3 - 1
tools/travis/travis_linux_script.sh

@@ -121,8 +121,10 @@ if ! [ -z ${CLANG_FORMAT+x} ]; then
     fi
 
     echo "====== clang-format Format Errors ======"
-    echo -e "Please fix the following issues:\n\n"
+    echo -e "Please fix the following issues. \n\nYou can also copy the output between the lines here and save it as file 'fixup.patch'.\nThen apply it with 'git apply fixup.patch'\n\n"
+    echo -e "=============== COPY HERE - START =================\n"
     echo "${difference}"
+    echo -e "\n============= COPY HERE - END ===================="
 
     echo -en 'travis_fold:start:script.clang-format\\r'
     exit 1