summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2014-03-19 17:56:17 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2014-03-19 17:56:17 +0000
commit72a420f09835a31eb1ec097f2791a7603120a2d9 (patch)
tree12ababc2f96574583c26984ab74cda25df9b1a9c /check
parentccaab279edce467ccc12746415029b83e1048e98 (diff)
downloadmorph-72a420f09835a31eb1ec097f2791a7603120a2d9.tar.gz
style check: Include newly added files in checks
Diffstat (limited to 'check')
-rwxr-xr-xcheck5
1 files changed, 3 insertions, 2 deletions
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' |