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

Re: 'eol' documentation confusion

From
Torsten Bögershausen <tboegi@web.de>
Date
Jun 22, 2015, 06:26 UTC
Message-ID
<5587AAB2.80305@web.de>
In-Reply-To
<CAHd499Do_bpdOkL2TqdO+8L=pR53117pKR0GSwdgvFDwq_S4=w@mail.gmail.com>
On 06/21/2015 04:16 PM, Robert Dailey wrote:
Show 14 quoted lines
> On Sun, Jun 21, 2015 at 9:04 AM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
>> Upon inspection of the gitattributes documentation page here:
>> https://git-scm.com/docs/gitattributes
>>
>> When comparing the documentation for 'text' with 'eol', I see the
>> following missing explanations for 'eol':
>>
>> * eol
>> * -eol
>>
>> Maybe the fact that these are missing means they are not valid to use.
>> There is also the issue that `text` usually controls EOL anyway. Is
>> there ever any reason to set eol in a way differently than explained
>> in the documentation (that is, `eol=lf` or `eol=crlf`)?

No. eol=lf or eol=crlf are the only useful settings. Everything else is ignored because it does not make sense.

See convert.c: static enum eol git_path_check_eol()

Previous: Robert DaileyNext: Junio C Hamano
Message 3 of 5 in “'eol' documentation confusion”
  1. Robert DaileyJun 21, 2015
  2. Robert DaileyJun 21, 2015
  3. Torsten BögershausenJun 22, 2015
  4. Junio C HamanoJun 22, 2015
  5. Torsten BögershausenJun 25, 2015

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.