pre-commit.sh: complain about everything
commit3cbc3a8cf26bbf86c48ac660b2ca6aa100d46069
authorKyle J. McKay <mackyle@gmail.com>
Sat, 10 Jun 2017 16:47:14 +0000 (10 09:47 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 10 Jun 2017 16:47:14 +0000 (10 09:47 -0700)
tree26911820fb99a467a798480903ee3969a1a93d9d
parent58f2745297d4695d0139222c7051ffc1c15c2b8b
pre-commit.sh: complain about everything

Rearchitect the pre-commit hook a bit so that it checks both
the .topdeps and .topmsg files for problems before exiting
and then shows all detected issues before exiting if any
problems were found.

It's better for users to see all the problems at once rather
than piecemeal and will facilitate introduction of bare mode
support without adding extra overhead.

(Actually it still won't check for dependency issues such as
duplicate, missing or looping unless everything else is okay.
But that's probably a good thing as those are more expensive
checks and are really unrelated to missing/zero-length checks.)

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
hooks/pre-commit.sh