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

Re: git diff --ignore-space-at-eol issue

From
Antoine Pelisse <apelisse@gmail.com>
Date
Dec 28, 2012, 16:46 UTC
Message-ID
<CALWbr2y3BdqcD-62jhPSQsK3U=8-Dc=R-jxg8H0yqpgVfdHJXw@mail.gmail.com>
In-Reply-To
<BLU163-W40634B340214076467C88ECF360@phx.gbl>
> The --ignore-space-at-eol option is ignored when used in conjunction
> with --name-status.
> It works fine otherwise.

Indeed the behavior of diff --stat, and etc has been corrected very recently to make it more consistent across all options. I don't know if the new behavior is exactly what you expected:

$ git diff --ignore-space-at-eol test.txt
$ git diff --ignore-space-at-eol --stat test.txt
 test.txt | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
$ git diff --ignore-space-at-eol --name-status test.txt
M       test.txt

The idea is that even though diff doesn't show any differences, stat, shortstat, numstat and name-status reports the file as being changed. This is available since v1.8.1-rc0.

Previous: John MoonNext: John Moon
Message 2 of 4 in “git diff --ignore-space-at-eol issue”
  1. John MoonDec 21, 2012
  2. Antoine PelisseDec 28, 2012
  3. John MoonDec 28, 2012
  4. Antoine PelisseDec 28, 2012

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.