Re: [PATCH] whitespace: fix initial-indent checking
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 16, 2007, 21:00 UTC
- Message-ID
- <7vk5nejqy6.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <20071216195956.GA14676@fieldses.org>
"J. Bruce Fields" <bfields@fieldses.org> writes:
Show 9 quoted lines
> Which is: I do get the occasional kernel patch with whitespace problems > uncaught by git's existing checks. It's annoying to have to fix them up > manually (but wastes Andrew Morton's time if I don't). This shouldn't > be necessary, because the kernel has a simple policy for initial > whitespace that is completely automatable. > > If we've got to define a fourth whitespace policy for this, well, OK, > I'll live--tell me what I need to do. I haven't seen a convincing > argument for that yet, though.
There is one "fix" you earlier implemented but there is no way to check in the current infrastructure of checking one line at a time. A run of blank lines at the end of file.
I personallyy find it much more interesting and useful than the "align with space" discussion.