diff --git a/.githooks/pre-commit b/.githooks/pre-commit index e69ce45..c98ab63 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -140,7 +140,7 @@ do # +++ - timestamp # to both lines working on the same file and having a a/ and b/ prefix. # Else it can not be applied with 'git apply'. - "$UNCRUSTIFY" -c "$CONFIG" -f "$file" $language_option | \ + "$UNCRUSTIFY" -q -c "$CONFIG" -f "$file" $language_option | \ git --no-pager diff --color=always --no-index -- "$file" - | \ sed -e "1s|--- $file_escaped_source|--- \"a/$file_escaped_target\"|" -e "2s|+++ -|+++ \"b/$file_escaped_target\"|" >> "$patch" done diff --git a/.travis.yml b/.travis.yml index b7c4187..fbb2d67 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,8 +50,8 @@ matrix: - export STYLE_OK=true - > for f in $SOURCES; do - if ! uncrustify --check -c .uncrustify.cfg $f; then - uncrustify -c .uncrustify.cfg -f $f | git --no-pager diff --no-index --color=always $f - + if ! uncrustify -q --check -c .uncrustify.cfg $f; then + uncrustify -q -c .uncrustify.cfg -f $f | git --no-pager diff --no-index --color=always $f - export STYLE_OK=false fi done