From 72a420f09835a31eb1ec097f2791a7603120a2d9 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Wed, 19 Mar 2014 17:56:17 +0000 Subject: style check: Include newly added files in checks --- check | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'check') diff --git a/check b/check index a5ef4128..77d4e826 100755 --- a/check +++ b/check @@ -96,12 +96,13 @@ errors=0 if "$run_style" && [ -d .git ]; then echo "Checking copyright statements" - if ! (git ls-files -z | xargs -0r scripts/check-copyright-year); then + if ! (git ls-files --cached -z | + xargs -0r scripts/check-copyright-year); then errors=1 fi echo 'Checking source code for silliness' - if ! (git ls-files | + if ! (git ls-files --cached | grep -v '\.gz$' | grep -Ev 'tests[^/]*/.*\.std(out|err)' | grep -vF 'tests.build/build-system-autotools.script' | -- cgit v1.2.1