From: Andreas Ericsson Date: Fri, 02 Nov 2007 10:45:56 GMT Subject: Re: [PATCH 1/2] War on whitespace: first, a bit of retreat. Message-ID: <472AFFE4.9060004@op5.se> In-Reply-To: David Symonds wrote: > On 11/2/07, Junio C Hamano wrote: >> This introduces core.whitespace configuration variable that lets >> you specify the definition of "whitespace error". >> >> Currently there are two kinds of whitespace errors defined: >> >> * trailing-space: trailing whitespaces at the end of the line. >> >> * space-before-tab: a SP appears immediately before HT in the >> indent part of the line. > >> [core] >> whitespace = -trailing-space > > Could I suggest naming the option 'whitespaceError', so it's clearer > that it's a negative setting? > Which would also open the window for "WhitespaceWarning" and "WhitespaceAutofix" later on, using the same semantics. Personally, I'd like to get warnings for non-tab-indent^H^H^H indent-with-non-tab (rename that option, perhaps?), autofix for trailing-whitespace and errors for space-before-tab, with command-line switch to override config settings. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231