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

Verbose Commit Ignore Line Fails via CRLF Line Endings

From
Spencer Fretwell <spencer.fretwell@gmail.com>
Date
Oct 8, 2024, 18:30 UTC
Message-ID
<CABa71ByU_9g_6OgJ9PsoQ99oyMspucTBqO-RkB_2W4smTr2RNw@mail.gmail.com>
gc -v produces CRLF file which does not ignore verbose description.
OSX + git-annex (pre-commit hook disabled just in case)
using subl -w (sublime text 4) as editor, which indicated the change
in line endings
- committing as Unix fixes the issue (workaround, tedious)
- leaving as Windows is the issue
see attached bugreport

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
- gc -v
What did you expect to happen? (Expected behavior)
- line endings respect OS
- gc without -v uses Unix line endings
- line ending is visible in sublime (editor = subl -w)
What happened instead? (Actual behavior)
- gc -v uses CRLF (Windows) line endings
- as seen in sublime (editor = subl -w)
What's different between what you expected and what actually happened?
- use of CRLF is leaving verbose output in commit message
Anything else you want to add:

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.46.2 cpu: arm64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh feature: fsmonitor--daemon libcurl: 8.4.0 zlib: 1.2.12 uname: Darwin 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:04 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6020 arm64 compiler info: clang: 15.0.0 (clang-1500.3.9.4) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks] post-checkout post-merge post-receive

Next: Spencer Fretwell
Message 1 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.