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

Re: .gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX

From
Adam Monsen <haircut@gmail.com>
Date
Jul 22, 2011, 13:56 UTC
Message-ID
<4E29818B.40707@gmail.com>
In-Reply-To
<4E297C5C.8030104@gmail.com>
I wrote:
> Anyone have ideas why my .gitattributes file isn't working?
drizzd on #git helped me out!

I went ahead and committed the file, and git replaced the line endings. drizzd said the repository (the file object, I guess?) contained a file with CRLF line endings, instead of LF line endings. But in my checked-out version, I correctly see a file with CRLF line endings. Yay!

I generally follow the advice at http://help.github.com/line-endings/ in terms of the core.autocrlf setting.

Previous: Adam Monsen
Message 2 of 2 in “.gitattributes not forcing EOLs correctly for a CRLF-ending file on *NIX”
  1. Adam MonsenJul 22, 2011
  2. Adam MonsenJul 22, 2011

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.