chiark / gitweb /
make git pre-commit hook only test files to be committed
authorHans-Christoph Steiner <hans@eds.org>
Wed, 3 Feb 2016 13:48:40 +0000 (14:48 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 3 Feb 2016 13:54:14 +0000 (14:54 +0100)
commit7c30569aed884efd4f64a3881dd2e941ccf5d200
treee8c21cc279e724a9e23d3daa704dbba7a1cc1638
parentf58616136176919d5f81bb9f749f231d9efd1357
make git pre-commit hook only test files to be committed

Right now, the git pre-commit hook is pretty annoying to work with when
development since it tests every single file.  That means notes, incomplete
stuff, etc. will be run through the tests.  So all of the files need to be
clean in order to commit even a single trivial fix.  This commit changes it
so that the pre-commit hook is only run on the files staged to be committed.
hooks/pre-commit