bad_ws=()
bad_compile=() while IFS= read -r commit; do echo Checking "$commit"
git checkout "$commit"
# git diff --check # uses .gitattributes to know what to check if ! git diff --check "${commit}^""$commit"; then bad_ws+=("$commit") fi
if ! make check then bad_compile+=("$commit") fi done < <(git rev-list "$HEAD_COMMIT" --not "$BASE_COMMIT" --)
popd
git worktree remove "$tmp"
# report errors
CODE=0
if [ "${#bad_ws[@]}" != 0 ] then
>&2 redprint "Whitespace errors!"
>&2 echo"In commits ${bad_ws[*]}"
>&2 echo"If you use emacs, you can prevent this kind of error from reoccurring by installing ws-butler and enabling ws-butler-convert-leading-tabs-or-spaces."
>&2 echo
CODE=1 fi
if [ "${#bad_compile[@]}" != 0 ] then
>&2 redprint "Compilation errors!"
>&2 echo"In commits ${bad_compile[*]}"
>&2 echo
CODE=1 fi
exit $CODE
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.