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

remove CR/LF from .gitignore

From
Alex Riesen <raa.lkml@gmail.com>
Date
Nov 2, 2005, 13:05 UTC
Message-ID
<81b0412b0511020505u1b6b7649l924e252d561b8e9e@mail.gmail.com>
For everyone cursed by dos/windows line endings (aka CRLF):

The code reading the .gitignore files (excludes and excludes per directory) leaves \r in the patterns, which causes fnmatch to fail for no obvious reason. Just remove a "\r" preceding a "\n" unconditionally.

---

Junio, sorry for attachments. Have no other way to it on gmail here at work. The other patch is just the test.

Next: Linus Torvalds
Message 1 of 3 in “remove CR/LF from .gitignore”
  1. Alex RiesenNov 2, 2005
  2. Linus TorvaldsNov 2, 2005
  3. Junio C HamanoNov 2, 2005

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.