Explorar o código

Add command how to fix issue

Stefan Profanter %!s(int64=5) %!d(string=hai) anos
pai
achega
f378380f31
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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