Sfoglia il codice sorgente

Add command how to fix issue

Stefan Profanter 5 anni fa
parent
commit
f378380f31
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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