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

Confusing note in "gitattributes text=auto" discription

From
HCHebrock, Christoph <ch@generationdesign.de>
Date
May 9, 2022, 10:59 UTC
Message-ID
<AM6PR03MB5444D37306312CE538C9BD1BCAC69@AM6PR03MB5444.eurprd03.prod.outlook.com>

Dear Sir or Madam, I have a question about "gitattributes text".

I find the sentence "When the file has been committed with CRLF, no conversion is done" somewhat confusing in the context descibed above. How is this possible when "text=auto" is active to commit/checkin CRLF?

Set to string value "auto" When text is set to "auto", the path is marked for automatic end-of-line conversion. If Git decides that the content is text, its line endings are converted to LF on checkin. "When the file has been committed with CRLF, no conversion is done."

With kind regards Christoph Hebrock

Next: Torsten Bögershausen
Message 1 of 2 in “Confusing note in "gitattributes text=auto" discription”
  1. Hebrock, ChristophMay 9, 2022
  2. Torsten BögershausenMay 9, 2022

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.