Re: Looking for pre-commit hook to check whitespace errors but not for all files

2013-12-16 Thread Junio C Hamano
Paul Menzel paulepan...@users.sourceforge.net writes: 1. Only the files actually committed should be checked. That means running `git commit -a`, abort that and then running `git commit some/file` should only check `some/file` for whitespace errors. Doesn't hooks/pre-commit.sample we ship

Looking for pre-commit hook to check whitespace errors but not for all files

2013-12-14 Thread Paul Menzel
Dear git folks, in coreboot we try to check for whitespace errors before committing. Of course a pre-commit hook is the way to go, but unfortunately it is not so simple (at least for me) as the following requirements exist. 1. Only the files actually committed should be checked. That means

Re: Looking for pre-commit hook to check whitespace errors but not for all files

2013-12-14 Thread John Keeping
On Sat, Dec 14, 2013 at 04:28:14PM +0100, Paul Menzel wrote: in coreboot we try to check for whitespace errors before committing. Of course a pre-commit hook is the way to go, but unfortunately it is not so simple (at least for me) as the following requirements exist. 1. Only the files