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

Re: Verbose Commit Ignore Line Fails via CRLF Line Endings

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Oct 8, 2024, 19:52 UTC
Message-ID
<ZwWNgc6JY46bmcjE@tapette.crustytoothpaste.net>
In-Reply-To
<CABa71By0WYkbNip6-hmcX2jH1GuHWEx=WBTda5=RV9koR-cVFg@mail.gmail.com>
On 2024-10-08 at 19:34:46, Spencer Fretwell wrote:
Show 14 quoted lines
> Thanks Brian,
> 
> It appears sublime auto-normalizes endings to "whatever occurs most
> frequently in the first 32kB". So, I guess it was witnessing the CRLF
> from the verbose output and replacing all lines with CRLF. Thanks for
> the reminder about --renormalize.
> 
> Is there any chance for git to support a CRLF magic ignore line,
> particularly considering the variation in standard line ending across
> different platforms? I tried autocrlf=input as well and it sadly
> doesn't normalize the commit message file itself. Either way (magic
> ignore with CRLF or normalizing line endings in the commit message),
> would be appreciated for mixed line ending workflows (especially
> considering WSL)

The answer is essentially that I don't know. We typically make decisions on whether we'll accept features when we see the patch. My guess is that, assuming someone (maybe you) sends a patch, it will probably be accepted, since I wouldn't expect it would be very difficult to do or have major impacts on the code. It might, as with any patch, take a couple of rounds, though.

I use Linux or rarely other Unix systems and always use LF endings, so I don't plan to send a patch since this doesn't affect me, but assuming the patch looked reasonable, I don't see myself having an objection to it.

-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA
Previous: Spencer FretwellNext: Torsten Bögershausen
Message 5 of 9 in “Verbose Commit Ignore Line Fails via CRLF Line Endings”
  1. Spencer FretwellOct 8, 2024
  2. Spencer FretwellOct 8, 2024
  3. brian m. carlsonOct 8, 2024
  4. Spencer FretwellOct 8, 2024
  5. brian m. carlsonOct 8, 2024
  6. Torsten BögershausenOct 11, 2024
  7. Junio C HamanoOct 11, 2024
  8. brian m. carlsonOct 8, 2024
  9. Torsten BögershausenOct 11, 2024

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.