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

diff: should warn about EOL when --no-index ?

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Dec 3, 2025, 16:26 UTC
Message-ID
<03643900-db0b-48b7-93a7-4d96632af57c@app.fastmail.com>

When using `git diff --no-index` on some CRLF files with my setup and config:

    warning: in the working copy of '<something>.csv', CRLF will be replaced by LF the next time Git touches it

To my mind, I’m saying that I don’t care about the working tree per se. In particular, in this case, I’m just using git-diff(1) as a difference utility on some non-Git files (this happens to be outside a Git repository).

-- 
Kristoffer Haugsbakk
Next: Torsten Bögershausen
Message 1 of 4 in “diff: should warn about EOL when --no-index ?”
  1. Kristoffer HaugsbakkDec 3, 2025
  2. Torsten BögershausenDec 3, 2025
  3. Kristoffer HaugsbakkDec 4, 2025
  4. Junio C HamanoDec 3, 2025

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.