diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-03-19 17:56:17 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-03-19 17:56:17 +0000 |
commit | 72a420f09835a31eb1ec097f2791a7603120a2d9 (patch) | |
tree | 12ababc2f96574583c26984ab74cda25df9b1a9c /check | |
parent | ccaab279edce467ccc12746415029b83e1048e98 (diff) | |
download | morph-72a420f09835a31eb1ec097f2791a7603120a2d9.tar.gz |
style check: Include newly added files in checks
Diffstat (limited to 'check')
-rwxr-xr-x | check | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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' | |