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

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

From
JMJohn Moon <johnmoon77@hotmail.com>
Date
Dec 21, 2012, 15:04 UTC
Message-ID
<BLU163-W40634B340214076467C88ECF360@phx.gbl>
Hi all,

The --ignore-space-at-eol option is ignored when used in conjunction with --name-status. It works fine otherwise.

$ git init Initialized empty Git repository in /tmp/test/.git/ $ printf "hello\r\n" > test.txt $git -c core.autocrlf=false add test.txt $git commit -m. [master (root-commit) 5c4ce92] . 1 file changed, 1 insertion(+) create mode 100644 test.txt $ printf "hello" > test.txt $ git diff --ignore-space-at-eol test.txt $ git diff --stat --ignore-space-at-eol test.txt 0 files changed $ git diff --name-status --ignore-space-at-eol test.txt M test.txt

Thanks.
 		 	   		  
Next: Antoine Pelisse
Message 1 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.