From: Junio C Hamano Date: Sun, 16 Dec 2007 21:00:01 GMT Subject: Re: [PATCH] whitespace: fix initial-indent checking Message-ID: <7vk5nejqy6.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20071216195956.GA14676@fieldses.org> "J. Bruce Fields" writes: > 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.