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

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

From
Adam Monsen <haircut@gmail.com>
Date
Jul 22, 2011, 13:34 UTC
Message-ID
<4E297C5C.8030104@gmail.com>
Anyone have ideas why my .gitattributes file isn't working?
Repo:  git://chordii.git.sourceforge.net/gitroot/chordii/chordii

File "INSTALL.WINDOWS" (in the top-level directory of the repo) should always have crlf line endings, but my git 1.7.4.1 client says the file is modified after a fresh clone. I'm on Ubuntu GNU/Linux, I have core.autocrlf set to "input". The top-level .gitattributes file contains one line: "INSTALL.WINDOWS eol=crlf".

More likely I'm misusing .gitattributes or the core.autocrlf setting.
Next: Adam Monsen
Message 1 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.