git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] New whitespace checking category 'trailing-blank-line'

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 26, 2009, 23:57 UTC
Message-ID
<7v7hxvov55.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vbpn7p1mw.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> I think the way we handled cr-at-eol was suboptimal. We should be able to
> link this to crlf attribute (and core.autocrlf configuration) and pretend
> as if cr-at-eol was given if a file is subject to the crlf conversion
> (iow,. cr-at-eol should be deprecated/removed as a mistake).

I was a moron. I think cr-at-eol was really the best we could do, as it is to allow CR at the end of the line _in the tracked contents_; iow, people who would want to use this would not be using crlf attribute at all.

So please strike this part out, but everything else stays the same.
Previous: Junio C HamanoNext: Thell
Message 3 of 4 in “New whitespace checking category 'trailing-blank-line'”
  1. New whitespace checking category 'trailing-blank-line'Bruno Haible, Jul 26, 2009
  2. Junio C HamanoJul 26, 2009
  3. Junio C HamanoJul 26, 2009
  4. ThellJul 30, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.