Re: [PATCH] whitespace: fix initial-indent checking
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 16, 2007, 19:43 UTC
- Message-ID
- <7v3au2l91r.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20071216162637.GA3934@fieldses.org>
"J. Bruce Fields" <bfields@fieldses.org> writes:
Show 6 quoted lines
>>> I prefer to use tabs for indent, but _spaces_ for align. While previous, >>> less strict version of check catches indent using spaces, this one also >>> catches _align_ using spaces. > > No, the previous version didn't work for the align-with-spaces case > either.
When indent-with-non-tab is in effect, it should tabify spaces in indent as much as possible. The error definition is deliberately incompatible with "align with spaces" policy.
The reason I made indent-with-non-tab configurable was to cater to these people. They can turn it off if they do not want it.