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

pre-commit to reject EOL changes

From
NKNeal Kreitzinger <neal@rsss.com>
Date
Jun 4, 2011, 00:27 UTC
Message-ID
<isbu54$dn3$1@dough.gmane.org>

I see that the pre-commit.sample reject introduction of lines with trailing whitespaces. Is there a way to have it reject changes in EOL format (CRLF vs LF)?

v/r, neal

Next: Jakub Narebski
Message 1 of 3 in “pre-commit to reject EOL changes”
  1. Neal KreitzingerJun 4, 2011
  2. Jakub NarebskiJun 4, 2011
  3. Stephen BashJun 6, 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.