Re: Improving CRLF error message; also, enabling autocrlf and safecrlf by default
- From
Jeff King <peff@peff.net>
- Date
- Feb 16, 2009, 03:18 UTC
- Message-ID
- <20090216031849.GA12348@coredump.intra.peff.net>
- In-Reply-To
- <7vhc2vf4yx.fsf@gitster.siamese.dyndns.org>
On Sun, Feb 15, 2009 at 07:14:30PM -0800, Junio C Hamano wrote:
Show 11 quoted lines
> > I'm happy you want to improve git; but please, if you want to report > > problems, check what the status is in a more recent version (or at least > > tell us your version, which can help). > > ... > > It might be worth splitting the trailing whitespace detection into > > "spaces and tabs at the end" and "CRLF", and providing different > > messages (though it is hopefully also obvious with the new output that > > it is a CRLF issue). > > I think the status on this in a more recent version can be found by > running "git grep cr-at-eol" ;-)
Heh. You didn't quote the part where I already claimed to be clueless. ;)
But seriously, might it not be useful for users seeing --check warnings for the first time to print:
file:1: trailing whitespace (cr-at-eol). +foo^M
That is, there are different rules for trailing whitespace, but we don't currently tell you which one triggered. Giving the user "cr-at-eol" gives them something to grep before.
-Peff