Re: [PATCH] allow a single form feed in pre commit hook
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 18, 2007, 10:18 UTC
- Message-ID
- <7v4peg1f33.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <5d2716640712180147x36aa3178ja8658e30842c4e52@mail.gmail.com>
"Hannes Eder" <hannes.eder@gmail.com> writes:
> It's not uncommon to have a lines with a single form feed in it, e.g. > the default GPL COPYING and also in .c files and others. Attached > patch allows this in the pre-commit hook.
Hmm. The current trend is to get rid of the whitespace checks from this hook and enrich git-diff --check and git-apply --whitespace=error.
I've been planning to add a new whitespace error rule that allows ^M at the end of line, post 1.5.4. Another rule that allows a lone ^L would match what you are doing here, and it would be a good addition as well.