pre-commit hook to reject whitespace
- From
- Neal Kreitzinger <neal@rsss.com>
- Date
- Jun 3, 2011, 23:31 UTC
- Message-ID
- <isbqsf$vh8$1@dough.gmane.org>
The reference manuals state in the hooks documentation that the pre-commit hook sample will reject whitespace only changes. However, the pre-commit.sample in the 1.7.1 and 1.7.5.4 downloads do not appear to do this (I'm new to linux scripts). The appear to only reject non-ascii filenames. Does someone have a pre-commit hook example I can use to reject whitespace-only changes? Thanks!
v/r, neal